-
Notifications
You must be signed in to change notification settings - Fork 983
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
manually install golicense from the last release #1657
Conversation
✅ Deploy Preview for karpenter-docs-prod canceled.
|
87435ea
to
b3d5735
Compare
@@ -15,14 +15,23 @@ tools() { | |||
go install github.com/golangci/golangci-lint/cmd/[email protected] | |||
go install github.com/google/[email protected] | |||
go install github.com/mikefarah/yq/[email protected] | |||
go install github.com/mitchellh/[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.
looks like golicense install is duplicated on line 13 :D
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.
:face-palm-emoji:
hack/toolchain.sh
Outdated
go install github.com/norwoodj/helm-docs/cmd/[email protected] | ||
go install github.com/onsi/ginkgo/[email protected] | ||
go install sigs.k8s.io/controller-runtime/tools/[email protected] | ||
go install sigs.k8s.io/controller-tools/cmd/[email protected] | ||
go install github.com/sigstore/cosign/cmd/[email protected] | ||
go install github.com/gohugoio/[email protected]+extended | ||
|
||
# golicense no longer builds with go 1.18+, for now just install the last release binary | ||
if [[ $(go env GOOS) == "darwin" ]]; then |
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.
Can we wrap this with a helper like kubebuilder?
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.
Another option would be to keep an older version of go on the host and just use that for the install command.
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.
Just created a helper for now, I viewed this as an interim solution to allow us to move to Go 1.18 whenever we want to. Hopefully the main repo will accept a PR or a fork will emerge that has this feature fixed.
b3d5735
to
0d59166
Compare
0d59166
to
67e9e68
Compare
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
1. Issue, if available:
N/A
2. Description of changes:
golicense doesn't build with go 1.18+, so instead of installing golicense from source, install the last release.
3. How was this change tested?
Locally, this PR should test is with VI
4. Does this change impact docs?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.