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

fix(pacmak): go 1.16 requires running "go mod download" explicitly #2616

Merged
merged 1 commit into from
Feb 28, 2021

Conversation

eladb
Copy link
Contributor

@eladb eladb commented Feb 28, 2021

Starting go 1.16, go build does not download modules and updates go.sum automatically. To that end, we now execute this before we execute go build during pacmak.

Additionally, set GOSUMDB to off in order to reduce the chance for eventual consistency issues when new modules are published.

Fixes #2615


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

Starting go 1.16, `go build` does not download modules and updates go.sum automatically. To that end, we now execute this before we execute `go build` during pacmak.

Additionally, set `GOSUMDB` to `off` in order to reduce the chance for eventual consistency issues when new modules are published.

Fixes #2615
@eladb eladb requested a review from RomainMuller February 28, 2021 08:48
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Feb 28, 2021
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-6Jw05QLuWWwe
  • Commit ID: 34d133d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@eladb eladb merged commit 1f8f022 into main Feb 28, 2021
@eladb eladb deleted the benisrae/go-mod-download branch February 28, 2021 12:31
This was referenced Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go 1.16 breaks go pacmak
3 participants