-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
Also upgrade various codegen tools
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
babashka 1.3.182 | ||
binaryen 114 | ||
circleci 0.1.28811 | ||
clojure 1.11.1.1386 | ||
golang 1.21.4 | ||
golangci-lint 1.55.2 | ||
java temurin-17.0.5+8 | ||
circleci 0.1.31425 | ||
golang 1.23.6 | ||
golangci-lint 1.64.5 | ||
nodejs 18.17.0 | ||
postgres 14.2 | ||
pre-commit 3.6.0 | ||
protoc 22.3 | ||
shfmt 3.7.0 | ||
pre-commit 4.1.0 | ||
protoc 29.3 | ||
shfmt 3.10.0 | ||
solidity 0.8.9 | ||
sqlc 1.22.0 | ||
tinygo 0.29.0 | ||
sqlc 1.27.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
.POSIX: | ||
|
||
GO ?= go | ||
GOFLAGS ?= | ||
TINYGO ?= tinygo | ||
WASMOPT ?= wasm-opt | ||
BINDIR ?= ./bin | ||
WASMDIR ?= ../js/shutter-crypto | ||
EXECUTABLE ?= ${BINDIR}/rolling-shutter | ||
GOPATH ?= $(${GO} env GOPATH) | ||
GO ?= go | ||
GOFLAGS ?= | ||
TINYGO ?= tinygo | ||
WASMOPT ?= wasm-opt | ||
BINDIR ?= ./bin | ||
WASMDIR ?= ../js/shutter-crypto | ||
EXECUTABLE ?= ${BINDIR}/rolling-shutter | ||
GOPATH ?= $(${GO} env GOPATH) | ||
GOLINT_CONCURRENCY ?= 0 | ||
|
||
TOOL_VERSTION_GOENUM ?= 0.6.0 | ||
TOOL_VERSION_PROTOCGENGO ?= 1.36.5 | ||
TOOL_VERSION_OAPICODEGEN ?= 1.16.1 | ||
|
||
|
||
build: | ||
${GO} build ${GOFLAGS} -ldflags="-X github.com/shutter-network/rolling-shutter/rolling-shutter/cmd/shversion.version=$(shell git describe --always --dirty)" -o ${EXECUTABLE} | ||
|
@@ -55,44 +61,33 @@ coverage: | |
clean: | ||
rm -f ${EXECUTABLE} | ||
|
||
install-tools: install-codegen-tools install-golangci-lint install-cobra install-gofumpt install-gci install-gotestsum | ||
install-tools: install-codegen-tools install-gofumpt install-gci install-gotestsum | ||
|
||
# code generation tools: pin version | ||
install-codegen-tools: install-npm install-abigen install-sqlc install-protoc-gen-go install-oapi-codegen install-go-enum | ||
install-codegen-tools: install-npm install-protoc-gen-go install-oapi-codegen install-go-enum | ||
|
||
../contracts/node_modules/.mark-npm-install: ../contracts/package.json ../contracts/package-lock.json | ||
cd ../contracts && npm install | ||
@touch ../contracts/node_modules/.mark-npm-install | ||
|
||
install-npm: ../contracts/node_modules/.mark-npm-install | ||
|
||
${GOPATH}/bin/sqlc: | ||
${GO} install github.com/sqlc-dev/sqlc/cmd/[email protected] | ||
install-sqlc: ${GOPATH}/bin/sqlc | ||
|
||
|
||
${GOPATH}/bin/go-enum: | ||
${GO} install github.com/abice/go-enum@v0.5.6 | ||
${GO} install github.com/abice/go-enum@v${TOOL_VERSTION_GOENUM} | ||
install-go-enum: ${GOPATH}/bin/go-enum | ||
|
||
${GOPATH}/bin/abigen: | ||
${GO} install github.com/ethereum/go-ethereum/cmd/[email protected] | ||
install-abigen: ${GOPATH}/bin/abigen | ||
|
||
|
||
${GOPATH}/bin/protoc-gen-go: | ||
${GO} install google.golang.org/protobuf/cmd/protoc-gen-go@v1.30.0 | ||
${GO} install google.golang.org/protobuf/cmd/protoc-gen-go@v${TOOL_VERSION_PROTOCGENGO} | ||
install-protoc-gen-go: ${GOPATH}/bin/protoc-gen-go | ||
|
||
|
||
${GOPATH}/bin/oapi-codegen: | ||
${GO} install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.9.1 | ||
${GO} install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v${TOOL_VERSION_OAPICODEGEN} | ||
install-oapi-codegen: ${GOPATH}/bin/oapi-codegen | ||
|
||
# non code generation tools | ||
install-golangci-lint: | ||
${GO} install github.com/golangci/golangci-lint/cmd/[email protected] | ||
|
||
install-gofumpt: | ||
${GO} install mvdan.cc/gofumpt@latest | ||
|
||
|
@@ -116,7 +111,7 @@ lint: | |
|
||
lint-changes: | ||
base=`git merge-base HEAD origin/main`; \ | ||
golangci-lint --verbose run --new-from-rev $${base} | ||
golangci-lint --verbose run --concurrency ${GOLINT_CONCURRENCY} --print-resources-usage --new-from-rev $${base} | ||
|
||
abigen: | ||
go generate -x ./contract | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// package contract contains the abigen generated bindings for rolling shutter's smart contracts | ||
package contract | ||
|
||
//go:generate node ../../contracts/scripts/abigen.js | ||
// disabled //go:generate node ../../contracts/scripts/abigen.js |