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

Remove tools from go.sum deps #4251

Merged
merged 1 commit into from
May 2, 2019
Merged

Conversation

alessio
Copy link
Contributor

@alessio alessio commented May 2, 2019

The go.sum target does not need to depend on tools to run successfully.

Closes: #4165

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote tests
  • Updated relevant documentation (docs/)
  • Added a relevant changelog entry: clog add [section] [stanza] [message]
  • rereviewed Files changed in the github PR explorer

For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@codecov
Copy link

codecov bot commented May 2, 2019

Codecov Report

Merging #4251 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #4251      +/-   ##
=========================================
- Coverage   58.91%   58.9%   -0.02%     
=========================================
  Files         215     215              
  Lines       14482   14482              
=========================================
- Hits         8532    8530       -2     
- Misses       5310    5312       +2     
  Partials      640     640

@alessio alessio marked this pull request as ready for review May 2, 2019 03:12
@alessio alessio requested review from fedekunze and sabau May 2, 2019 03:12
@@ -110,7 +110,7 @@ go-mod-cache: go.sum
@echo "--> Download go modules to local cache"
@go mod download

go.sum: tools go.mod
go.sum: go.mod
@echo "--> Ensure dependencies have not been modified"
@go mod verify
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not need -mod=readonly here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

-mod=readonly is not supported by go mod just yet - from what I can see here golang/go#31372 and here https://go-review.googlesource.com/c/go/+/174258/, it seems that upstream will include it in Go 1.14

Copy link
Contributor

@sabau sabau left a comment

Choose a reason for hiding this comment

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

Tested ACK

@alessio alessio merged commit 60a6a8d into master May 2, 2019
@alessio alessio deleted the alessio/better-go-sum-target branch May 2, 2019 16:30
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.

Use of "go mod verify" in Makefile results in unreproducible builds
3 participants