Skip to content

Commit

Permalink
Merge pull request #394 from konradkonrad/npm_install_make
Browse files Browse the repository at this point in the history
Ensure all codegen tools up to date before `generate`
  • Loading branch information
konradkonrad authored Aug 17, 2023
2 parents 34e728e + 3bba405 commit 50a4fc6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rolling-shutter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test: test-unit

test-all: test-unit test-integration

generate:
generate: install-codegen-tools
${GO} generate -x ./...

coverage:
Expand All @@ -49,7 +49,10 @@ clean:
install-tools: install-codegen-tools install-golangci-lint install-cobra install-gofumpt install-gci install-gotestsum

# code generation tools: pin version
install-codegen-tools: install-abigen install-sqlc install-protoc-gen-go install-oapi-codegen install-stringer
install-codegen-tools: install-npm install-abigen install-sqlc install-protoc-gen-go install-oapi-codegen install-stringer

install-npm:
cd ../contracts && npm install

install-sqlc:
${GO} install github.com/kyleconroy/sqlc/cmd/[email protected]
Expand Down

0 comments on commit 50a4fc6

Please sign in to comment.