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

manually install golicense from the last release #1657

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

tzneal
Copy link
Contributor

@tzneal tzneal commented Apr 11, 2022

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?

  • Yes, PR includes docs updates
  • Yes, issue opened: link to issue
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@tzneal tzneal requested a review from a team as a code owner April 11, 2022 14:28
@tzneal tzneal requested a review from suket22 April 11, 2022 14:28
@netlify
Copy link

netlify bot commented Apr 11, 2022

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 67e9e68
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/625462a4a26c9c000989f60d

@tzneal tzneal force-pushed the install-golicense-release branch from 87435ea to b3d5735 Compare April 11, 2022 14:32
@@ -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]
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:face-palm-emoji:

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
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@tzneal tzneal force-pushed the install-golicense-release branch from b3d5735 to 0d59166 Compare April 11, 2022 17:15
@tzneal tzneal force-pushed the install-golicense-release branch from 0d59166 to 67e9e68 Compare April 11, 2022 17:17
Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bwagner5 bwagner5 merged commit c115db3 into aws:main Apr 11, 2022
@tzneal tzneal deleted the install-golicense-release branch April 17, 2022 01:54
@suket22 suket22 mentioned this pull request May 23, 2022
3 tasks
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.

3 participants