Skip to content

Commit

Permalink
goimports only on ygot-generated structs
Browse files Browse the repository at this point in the history
  • Loading branch information
wenovus committed Nov 10, 2023
1 parent a724e6b commit 0a4c502
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd_gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function run-dir() {
if [[ $status -eq "0" ]]; then
go mod init &>> ${prefix}pass || status=1
go mod tidy &>> ${prefix}pass || status=1
goimports -w . &>> ${prefix}pass || status=1
goimports -w *.go &>> ${prefix}pass || status=1
go build &>> ${prefix}pass || status=1
fi
if [[ $status -eq "1" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion cmd_gen/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function run-dir() {
if [[ $status -eq "0" ]]; then
go mod init &>> ${prefix}pass || status=1
go mod tidy &>> ${prefix}pass || status=1
goimports -w . &>> ${prefix}pass || status=1
goimports -w *.go &>> ${prefix}pass || status=1
go build &>> ${prefix}pass || status=1
fi
if [[ $status -eq "1" ]]; then
Expand Down

0 comments on commit 0a4c502

Please sign in to comment.