Skip to content

Commit

Permalink
feat(*): make goimports call more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickersoft committed May 28, 2023
1 parent 0fdd9bc commit 4a1a0db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
go build -ldflags "-X 'github.com/TheOpenDictionary/odict/cli.version=$(cat ../version.txt)'" -o ../bin/odict ../odict.go

@schema:
flatc -g --gen-onefile --go-namespace cli -o . ../flatbuffers/service.fbs ../flatbuffers/enums.fbs && goimports -w *.go
flatc -g --gen-onefile --go-namespace cli -o . ../flatbuffers/service.fbs ../flatbuffers/enums.fbs && $(go env GOPATH)/bin/goimports -w *.go

@run +args="": build
../bin/odict {{args}}
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@run +args="": (cli "run" args)

@test: (go "test") (jvm "test") (python "test") (js "test")
@test: deps (go "test") (jvm "test") (python "test") (js "test")

@clean: (python "clean") (jvm "clean") (js "clean")
rm -rf **/*.odict
Expand Down
2 changes: 1 addition & 1 deletion lib/justfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@schema:
flatc -g --gen-onefile --go-namespace types -o ./types ../flatbuffers/schema.fbs ../flatbuffers/enums.fbs && goimports -w ./types/*.go
flatc -g --gen-onefile --go-namespace types -o ./types ../flatbuffers/schema.fbs ../flatbuffers/enums.fbs && $(go env GOPATH)/bin/goimports -w ./types/*.go

test:
just ../cli/build
Expand Down

0 comments on commit 4a1a0db

Please sign in to comment.