Skip to content

Commit 00cd850

Browse files
Fix reference import templating (#303)
Description of changes: The current implementation attempts to put all service type imports on the same line. This pull request ensures each import gets a separate line per service and compiles correctly. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent e09be56 commit 00cd850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/pkg/resource/references.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
{{ range $referencedServiceName := .CRD.ReferencedServiceNames -}}
2525
{{ if not (eq $referencedServiceName $servicePackageName) -}}
2626
{{ $referencedServiceName }}apitypes "github.com/aws-controllers-k8s/{{ $referencedServiceName }}-controller/apis/{{ $apiVersion }}"
27-
{{- end }}
27+
{{ end }}
2828
{{- end }}
2929
{{- end }}
3030

0 commit comments

Comments
 (0)