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

cmd/go: go mod tidy and go mod download don't agree on same go.sum file. #44441

Closed
c4milo opened this issue Feb 19, 2021 · 1 comment
Closed

Comments

@c4milo
Copy link
Member

c4milo commented Feb 19, 2021

What version of Go are you using (go version)?

go version go1.16 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ ~/Downloads/go\ 2/bin/go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/caguilar/Library/Caches/go-build"
GOENV="/Users/caguilar/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/caguilar/go/pkg/mod"
GONOPROXY="slack-github.com"
GONOSUMDB="slack-github.com"
GOOS="darwin"
GOPATH="/Users/caguilar/go"
GOPRIVATE="slack-github.com"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/caguilar/Downloads/go 2"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/caguilar/Downloads/go 2/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/caguilar/src/goslackgo/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/sd/dhdfq5qx471__68g8fl9v_jh0000gp/T/go-build540412494=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

  1. go mod tidy
  2. go mod download

What did you expect to see?

I was expecting go.sum to not change.

What did you see instead?

go.sum changed. This causes issues in our CI since we don't expect source files to be arbitrarily changed during CI.

@c4milo c4milo changed the title cmd/go: go mod tidy and go mod download don't agree on same go.sum file. cmd/go: go mod tidy and go mod download don't agree on same go.sum file. Feb 19, 2021
@tmthrgd
Copy link
Contributor

tmthrgd commented Feb 20, 2021

This is a duplicate of #43994.

@golang golang locked and limited conversation to collaborators Feb 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants