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

build: cleanup Makefile #2461

Merged
merged 1 commit into from
Jul 17, 2023
Merged

build: cleanup Makefile #2461

merged 1 commit into from
Jul 17, 2023

Conversation

AlexanderYastrebov
Copy link
Member

@@ -112,11 +108,12 @@ lint: build staticcheck ## run all linters

.PHONY: clean
clean: ## clean temporary files and directories
go clean -i -cache -testcache
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-cache or -testcache flags remove entire go build cache.
golang/go#53725 added warning about it which we silenced in #2217

* remove unnecessary bin target
* remove bin directory during clean
* fix typo
* do not clean entire go build cache (see golang/go#53725)

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
@MustafaSaber
Copy link
Member

👍

1 similar comment
@AlexanderYastrebov
Copy link
Member Author

👍

@AlexanderYastrebov AlexanderYastrebov merged commit 1f4828d into master Jul 17, 2023
@AlexanderYastrebov AlexanderYastrebov deleted the cleanup-makefile branch July 17, 2023 10:25
@@ -22,25 +22,21 @@ help: ## Display this help
lib: $(SOURCES) ## build skipper library
go build ./...

.PHONY: bindir
bindir:
mkdir -p bin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not so great because it breaks the build for new contributors

Copy link
Member Author

@AlexanderYastrebov AlexanderYastrebov Jul 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, bin is created by go build automatically (try e.g. make clean skipper)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants