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 make help and cleanup vendor references #431

Merged
merged 2 commits into from
Oct 3, 2024
Merged
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
3 changes: 2 additions & 1 deletion make/clean.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.PHONY: clean
## runs go clean
clean:
$(Q)-rm -rf ${V_FLAG} $(OUT_DIR) ./vendor
$(Q)-rm -rf ${V_FLAG} $(OUT_DIR)
$(Q)go clean ${X_FLAG} ./...
11 changes: 5 additions & 6 deletions make/go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,26 @@ GO111MODULE?=on
export GO111MODULE

.PHONY: build
## Build
build: $(shell find . -path ./vendor -prune -o -name '*.go' -print)
## runs go build
build:
$(Q)CGO_ENABLED=0 GOARCH=amd64 GOOS=linux \
go build ./...

.PHONY: vendor
vendor:
$(Q)go mod vendor

.PHONY: verify-dependencies
## Runs commands to verify after the updated dependecies of toolchain-common/API(go mod replace), if the repo needs any changes to be made
verify-dependencies: tidy vet build test lint-go-code

.PHONY: tidy
## runs go mod tidy
tidy:
go mod tidy

.PHONY: vet
## runs go mod vet ./...
vet:
go vet ./...

.PHONY: verify-replace-run
## downloads all the repos that depend on toolchain-common, installs the current version of the library and runs all the verifications in order to check for compatibility and breaking changes
verify-replace-run:
./scripts/verify-replace.sh;
Loading