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: get -u all fails when using an explicit list succeeds #63528

Closed
seankhliao opened this issue Oct 13, 2023 · 1 comment
Closed

cmd/go: get -u all fails when using an explicit list succeeds #63528

seankhliao opened this issue Oct 13, 2023 · 1 comment
Labels
GoCommand cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@seankhliao
Copy link
Member

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

$ go version
go version devel go1.22-d1ef967306 Fri Oct 13 05:45:53 2023 +0000 linux/amd64

Does this issue reproduce with the latest release?

yes

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

go env Output
$ go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/arccy/.cache/go-build'
GOENV='/home/arccy/.config/go/env'
GOEXE=''
GOEXPERIMENT='cacheprog'
GOFLAGS='-trimpath "-ldflags=-s -w"'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/arccy/.data/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/arccy/.data/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/arccy/sdk/gotip'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='path'
GOTOOLDIR='/home/arccy/sdk/gotip/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='devel go1.22-d1ef967306 Fri Oct 13 05:45:53 2023 +0000'
GCCGO='gccgo'
GOAMD64='v3'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='0'
GOMOD='/home/arccy/tmp/testrepo0398/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3798423965=/tmp/go-build -gno-record-gcc-switches'

What did you do?

go.mod:

module example

go 1.21.0

require (
        golang.org/x/sys v0.12.0
        golang.org/x/term v0.12.0
)

main.go:

package main

import (
	_ "golang.org/x/sys/unix"
	_ "golang.org/x/term"
)

Upgrade with all pattern

$ go get -u all                               
go: all: module golang.org/x/sys@upgrade found (v0.13.0), but does not contain package golang.org/x/sys/internal/unsafeheader

What did you expect to see?

$ go get -u golang.org/x/sys golang.org/x/term
go: upgraded golang.org/x/sys v0.12.0 => v0.13.0
go: upgraded golang.org/x/term v0.12.0 => v0.13.0

What did you see instead?

missing package error for package that was removed but not needed in upgraded versions

distilled from #63412

cc @bcmills

@seankhliao seankhliao added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. GoCommand cmd/go modules labels Oct 13, 2023
@bcmills
Copy link
Member

bcmills commented Oct 13, 2023

Duplicate of #47303

@bcmills bcmills marked this as a duplicate of #47303 Oct 13, 2023
@bcmills bcmills closed this as not planned Won't fix, can't repro, duplicate, stale Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GoCommand cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

2 participants