-
Notifications
You must be signed in to change notification settings - Fork 39
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
tools: move tools.go to its own directory tools/ #382
Conversation
locally it seems to be working fine, We'll be able to upgrade a lot csiaddons dependencies if we separate operator-sdk out. @nixpanic any idea why this maybe failing in workflow?
|
When checking, I noticed this:
After deleting |
Makefile
Outdated
|
||
# operator-sdk gets installed from the vendor/ directory. | ||
OPERATOR_SDK = $(shell pwd)/bin/operator-sdk | ||
.PHONY: operator-sdk | ||
operator-sdk: | ||
go build -o $(OPERATOR_SDK) ./vendor/$(shell grep operator-sdk tools.go | sed 's/.*_ "//;s/"//') | ||
cd ./tools && go build -o $(OPERATOR_SDK) ./vendor/$(shell grep operator-sdk tools/tools.go | sed 's/.*_ "//;s/"//') -mod=mod |
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.
remove the -mod=mod
Tried the same thing, But there's still same failure. https://github.com/csi-addons/kubernetes-csi-addons/actions/runs/5356030502/jobs/9715035090?pr=382 @nixpanic Can you please run pull this pr, run those changes and force push ? |
Maybe one file under |
Thanks ! But it still fails with same error 😩 |
2b08f6b
to
a369b39
Compare
# FIXME: Remove `go mod tidy && go mod vendor` once we find the reason why ci workflow fails. | ||
cd ./tools && go mod tidy && go mod vendor && go build -o $(OPERATOR_SDK) ./vendor/$(shell grep operator-sdk tools/tools.go | sed 's/.*_ "//;s/"//') |
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.
Added this to make ci happy .
opened new issue for this #384
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 342d457 |
tools.go is moved to another module tools to separate all dependencies used for build from main go.mod. Signed-off-by: Rakshith R <[email protected]>
tools.go is moved to another module tools to
separate all dependencies used for build from
main go.mod.