-
Notifications
You must be signed in to change notification settings - Fork 924
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 karmadactl path #6137
base: master
Are you sure you want to change the base?
fix karmadactl path #6137
Conversation
Signed-off-by: sivchari <shibuuuu5@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @sivchari! It looks like this is your first PR to karmada-io/karmada 🎉 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #6137 +/- ##
=======================================
Coverage 48.10% 48.11%
=======================================
Files 668 668
Lines 55307 55307
=======================================
+ Hits 26605 26610 +5
+ Misses 26967 26963 -4
+ Partials 1735 1734 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @sivchari Thanks for spotting, but I'm not sure what problem this PR is supposed to solve, Could you please explain it with more details? |
As I said, GOPATH and GOBIN is configurable, then the priority is following when running go install.
Thus if GOBIN is set to another location, karmadactl might not be installed to the following location.
It would be good to use Thanks! |
Thank you for the explanation, I understand that the current implementation requires However, changing to |
At now, local-up-karmada.sh needs us to locate the karmadactl in $GOPATH/bin in advance. But, as far as I know, there are some way to install karmadactl and it seems to some way not to install to $GOPATH/bin. So I thought it prefers not to specify $GOPATH/bin. |
@liangyuanpeng Would you like to take a look? |
What type of PR is this?
/kind bug
What this PR does / why we need it:
GOBIN and GOPATH is configurable, so use
which command
to fetch PATH of karmadactl.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: