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 makefile default target #579

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Conversation

runsisi
Copy link
Contributor

@runsisi runsisi commented Jun 20, 2023

No description provided.

Signed-off-by: runsisi <runsisi@hust.edu.cn>
@thebsdbox
Copy link
Collaborator

Apologies for the delay I've been on PTO 🏖️

At some point, I really need to learn about makefiles. I don't suppose you could be a little clearer about what this change does?

@runsisi
Copy link
Contributor Author

runsisi commented Jun 23, 2023

i think .DEFAULT_GOAL is a special variable, it should be defined using := operator 1 ?

found the issue when building w/o target specified:

❯ make
go mod tidy
go: downloading k8s.io/api v0.26.2
...
go: downloading github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38
test -z ""
test -z  || echo "[WARN] Fix formatting issues with 'make fmt'"
golangci-lint run
make: golangci-lint: No such file or directory
make: *** [Makefile:96: check] Error 127

the default target should be the value of .DEFAULT_GOAL instead of check.

Footnotes

  1. https://www.gnu.org/software/make/manual/html_node/Special-Variables.html

@thebsdbox thebsdbox merged commit 8c0791d into kube-vip:main Jul 18, 2023
@runsisi runsisi deleted the wip-fix-target branch July 18, 2023 13:33
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.

2 participants