Skip to content

Commit

Permalink
install goimports
Browse files Browse the repository at this point in the history
  • Loading branch information
wenovus committed Nov 10, 2023
1 parent 45017fc commit 020fd32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd_gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ function run-dir() {
mv ${prefix}pass ${prefix}fail
fi
}
go install golang.org/x/tools/cmd/goimports@latest
`),
perModelTemplate: mustTemplate("goyang-ygot", `run-dir "{{ .ModelDirName }}" "{{ .ModelName }}" {{- range $i, $buildFile := .BuildFiles }} {{ $buildFile }} {{- end }} {{- if .Parallel }} & {{- end }}
`),
Expand Down
1 change: 1 addition & 0 deletions cmd_gen/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ function run-dir() {
mv ${prefix}pass ${prefix}fail
fi
}
go install golang.org/x/tools/cmd/goimports@latest
run-dir "acl" "openconfig-acl" testdata/acl/openconfig-acl.yang testdata/acl/openconfig-acl-evil-twin.yang
run-dir "optical-transport" "openconfig-optical-amplifier" testdata/optical-transport/openconfig-optical-amplifier.yang
run-dir "optical-transport" "openconfig-transport-line-protection" testdata/optical-transport/openconfig-transport-line-protection.yang
Expand Down

0 comments on commit 020fd32

Please sign in to comment.