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

Add zero to go version (1.22.0) #1415

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add zero to go version (1.22.0) #1415

wants to merge 1 commit into from

Conversation

bwiens
Copy link

@bwiens bwiens commented Jul 24, 2024

I was not able to compile otherwise on MacOS.

Reason for Change:
I was not able to compile on MacOS:
make
go: downloading go1.22 (darwin/amd64)
go: download go1.22 for darwin/amd64: toolchain not available
go: downloading go1.22 (darwin/amd64)
go: download go1.22 for darwin/amd64: toolchain not available
go: downloading go1.22 (darwin/amd64)
go: download go1.22 for darwin/amd64: toolchain not available
...

After updating go.mod to 1.22.0, this worked without issues.
make
go: downloading go1.22.0 (darwin/amd64)
GOOS=darwin GOARCH=amd64 go build -o /Users/bwiens/dev/git/azure-workload-identity/bin/azwi-darwin-amd64 -ldflags "-X github.com/Azure/azure-workload-identity/pkg/version.BuildTime=$(date +%Y-%m-%d-%H:%M) -X github.com/Azure/azure-workload-identity/pkg/version.BuildVersion=v1.3.0 -X github.com/Azure/azure-workload-identity/pkg/version.Vcs=09f285c -X github.com/Azure/azure-workload-identity/pkg/webhook.ProxyImageVersion=v1.3.0 -X github.com/Azure/azure-workload-identity/pkg/webhook.ProxyImageRegistry=mcr.microsoft.com/oss/azure/workload-identity" ./cmd/azwi
go: downloading monis.app/mlog v0.0.4
go: downloading k8s.io/client-go v0.29.5
...

Also see this reference golang/go#65568 (comment)

Requirements

  • squashed commits
  • included documentation
  • added unit tests and e2e tests (if applicable).

Issue Fixed:

Please answer the following questions with yes/no:

Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?

  • yes
  • no

Notes for Reviewers:

I was not able to compile otherwise on MacOS.
@bwiens bwiens requested review from aramase and enj as code owners July 24, 2024 18:53
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.

1 participant