-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed as not planned
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Description
What version of Go are you using (go version
)?
$ go version go version go1.18.8 darwin/arm64
Does this issue reproduce with the latest release?
No, it works fine in 1.19
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GO111MODULE="" GOARCH="arm64" GOBIN="" GOCACHE="/Users/simle/Library/Caches/go-build" GOENV="/Users/simle/Library/Application Support/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="arm64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/simle/Development/go/pkg/mod" GONOPROXY="git.sqcorp.co,git.corp.squareup.com,github.com/squareup" GONOSUMDB="git.sqcorp.co,git.corp.squareup.com,github.com/squareup" GOOS="darwin" GOPATH="/Users/simle/Development/go" GOPRIVATE="git.sqcorp.co,git.corp.squareup.com,github.com/squareup" GOPROXY="https://proxy.golang.org,direct" GOROOT="/opt/homebrew/Cellar/go@1.18/1.18.8/libexec" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/opt/homebrew/Cellar/go@1.18/1.18.8/libexec/pkg/tool/darwin_arm64" GOVCS="" GOVERSION="go1.18.8" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/dev/null" GOWORK="" 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 arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/dj/8r2z_93n6h79603f18pcf1880000gn/T/go-build3340641431=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
I tried to import and use the package golang.org/x/exp/slog
and ran into the issue of atomic.Int64
not being defined for 1.18.
What did you expect to see?
The go.mod file in the exp repo shows that it should work for 1.18.
What did you see instead?
Failure to build.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.