-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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 caching by not depending on PHONY target in non-PHONY target #17965
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have an issue for this or some more context on what is happening with cache?
If you run |
Would it make sense to define the @@ -58,13 +56,14 @@ gofail-disable:
cd ./tests && go mod tidy
.PHONY: install-gofail
-install-gofail:
+install-gofail: $(GOPATH)/bin/gofail
+
+$(GOPATH)/bin/gofail:
go install go.etcd.io/gofail@${GOFAIL_VERSION} |
Right, but what happens when |
Good point, it won't work. Although we could add the version to the path, it won't be a clean solution. |
Figured out we can do it by depending on go.mod, PTAL @ivanvc |
Signed-off-by: Marek Siarkowicz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We need to bump go version first to make CI happy
Or I can just merge :P |
cc @MadhavJivrajani @fuweid @siyuanfoundation