mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
entc/gen/template: fix intercept package imports (#3507)
This commit is contained in:
@@ -12,7 +12,12 @@ in the LICENSE file in the root directory of this source tree.
|
||||
{{ template "header" . }}
|
||||
{{ end }}
|
||||
|
||||
import "{{ $.Config.Package }}"
|
||||
import (
|
||||
"{{ $.Config.Package }}"
|
||||
{{- range $n := $.Nodes }}
|
||||
{{ $n.PackageAlias }} "{{ $n.Config.Package }}/{{ $n.PackageDir }}"
|
||||
{{- end }}
|
||||
)
|
||||
|
||||
{{ $pkg := base $.Config.Package }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user