-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.
Milestone
Description
Go version
1.24.7
Output of go env
in your module/workspace:
AR='ar'
CC='cc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='c++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/Users/myuser/Library/Caches/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/Users/myuser/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/13/dmjqrg054bj2rksf_fjxshf40000gp/T/go-build1904087244=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMOD='/Users/myuser/home/project/go.mod'
GOMODCACHE='/Users/myuser/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/myuser/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go@1.24/1.24.7/libexec'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/myuser/Library/Application Support/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/homebrew/Cellar/go@1.24/1.24.7/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.24.7'
GOWORK=''
PKG_CONFIG='pkg-config'
What did you do?
As the title says:
https://cs.opensource.google/go/x/tools/+/master:imports/forward.go;bpv=1;bpt=0;drc=be644c74962554e500e5f890413951358e19fbb7;dlc=559c4300daa4efe55422df9bba86d125cdf1d9ef
This function was a part of public API and in my opinion got sneaked into the cleanup mr
I've tried to import VendorlessPath
which was available in x/tools 0.37
Compare:
https://pkg.go.dev/golang.org/x/tools@v0.37.0/imports
https://pkg.go.dev/golang.org/x/tools@v0.38.0/imports
What did you see happen?
In 0.38, the function VendorlessPath
is not available anymore, thus breaking API
What did you expect to see?
I expected to still be able to import VendorlessPath
elgohr
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.