Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix_: generate on clients #5918

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ mock.go
*.pb.go
bindata.go
migrations.go
cmd/statusd/server/endpoints.go
cmd/status-backend/server/endpoints.go
protocol/messenger_handlers.go

# Don't ignore generated files in the vendor/ directory
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,15 @@ setup-dev: ##@setup Install all necessary tools for development
setup-dev:
echo "Replaced by Nix shell. Use 'make shell' or just any target as-is."

generate: SKIP_GENERATE ?= false
generate: PACKAGES ?= $$(go list -e ./... | grep -v "/contracts/")
generate: GO_GENERATE_CMD ?= $$(which go-generate-fast || echo 'go generate')
generate: export GO_GENERATE_FAST_DEBUG ?= false
generate: export GO_GENERATE_FAST_RECACHE ?= false
generate: ##@ Run generate for all given packages using go-generate-fast, fallback to `go generate` (e.g. for docker)
@GOROOT=$$(go env GOROOT) $(GO_GENERATE_CMD) -x $(PACKAGES)
@if [[ "$(SKIP_GENERATE)" != "true" ]]; then \
GOROOT=$$(go env GOROOT) $(GO_GENERATE_CMD) -x $(PACKAGES); \
fi

generate-contracts:
go generate ./contracts
Expand Down
120 changes: 0 additions & 120 deletions cmd/status-backend/server/endpoints.go

This file was deleted.

1 change: 1 addition & 0 deletions nix/pkgs/codecov-cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ in stdenv.mkDerivation rec {
url = "https://cli.codecov.io/v${version}/${platform}/codecov";
hash = lib.getAttr builtins.currentSystem {
aarch64-darwin = "sha256-CB1D8/zYF23Jes9sd6rJiadDg7nwwee9xWSYqSByAlU=";
x86_64-darwin = "sha256-CB1D8/zYF23Jes9sd6rJiadDg7nwwee9xWSYqSByAlU=";
x86_64-linux = "sha256-65AgCcuAD977zikcE1eVP4Dik4L0PHqYzOO1fStNjOw=";
aarch64-linux = "sha256-hALtVSXY40uTIaAtwWr7EXh7zclhK63r7a341Tn+q/g=";
};
Expand Down