You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
x/sys: execabs isGo119ErrDot redeclared in go 1.15 #52668
go 1.15 has issues with the isGo119ErrDot function being redeclared:
$ go get golang.org/x/tools/cmd/goimports
# golang.org/x/sys/execabs
root/go/src/golang.org/x/sys/execabs/execabs_go119.go:11:6: isGo119ErrDot redeclared in this block
previous declaration at root/go/src/golang.org/x/sys/execabs/execabs_go118.go:9:31
You can reproduce the issue with this Docker file, run docker build . on it
FROM docker:20.10.12
RUN apk add curl git
RUN curl -LO "https://dl.google.com/go/go1.15.7.linux-amd64.tar.gz"
RUN tar -C /usr/local -xzf go1.15.7.linux-amd64.tar.gz
ENV PATH /usr/local/go/bin:${PATH}
RUN go version
RUN go env
RUN go get golang.org/x/tools/cmd/goimports
Activity
[-]affected/package: [/-][+]x/sys: execab block redeclared in go 1.15[/+][-]x/sys: execab block redeclared in go 1.15[/-][+]x/sys: execabs isGo119ErrDot redeclared in go 1.15[/+]bcmills commentedon May 3, 2022
Note that per the release policy, Go 1.15 is no longer supported.
However, it's an easy fix and I don't see much harm in applying it (beyond enabling folks to use insecure, out-of-date Go releases).
gopherbot commentedon May 3, 2022
Change https://go.dev/cl/403695 mentions this issue:
execabs: add legacy "//+build" constraintsscottTomaszewski commentedon May 3, 2022
Fixed, thank you 🙏
execabs: add legacy "//+build" constraints