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
$ GO111MODULE=on CGO_ENABLED=0 go build
# crypto/rc4
/usr/local/go/src/crypto/rc4/rc4_asm.go:15:18: (*Cipher).XORKeyStream redeclared in this block
previous declaration at /usr/local/go/src/crypto/rc4/rc4.go:61:6
# bytes
/usr/local/go/src/bytes/bytes_decl.go:10:6: IndexByte redeclared in this block
previous declaration at /usr/local/go/src/bytes/bytes.go:101:34
/usr/local/go/src/bytes/bytes_decl.go:17:6: Equal redeclared in this block
previous declaration at /usr/local/go/src/bytes/bytes.go:18:25
/usr/local/go/src/bytes/bytes_decl.go:24:6: Compare redeclared in this block
previous declaration at /usr/local/go/src/bytes/bytes.go:37:27
# crypto/cipher
/usr/local/go/src/crypto/cipher/xor_amd64.go:9:6: xorBytes redeclared in this block
previous declaration at /usr/local/go/src/crypto/cipher/xor.go:58:33
/usr/local/go/src/crypto/cipher/xor_amd64.go:22:6: xorWords redeclared in this block
previous declaration at /usr/local/go/src/crypto/cipher/xor.go:83:27
# strings
/usr/local/go/src/strings/strings_decl.go:8:6: IndexByte redeclared in this block
previous declaration at /usr/local/go/src/strings/strings.go:150:34
The text was updated successfully, but these errors were encountered:
mikioh
changed the title
Issue with net/http with go modules on linux
cmd/go: Issue with net/http with go modules on linux
Mar 19, 2019
I think you have somehow overwritten your previous Go installation with a new one. The assembly implementation of rc4 was removed in 1.12, but you seem to have both.
I suggest wiping the current installation, and reinstalling Go, preferably using the official tarball rather than your OS package manager.
Yes, your installation seems broken. This is not a modules issue. Just try with go build and even that should fail. Please delete your previous installation and do a clean install.
If that does not solve your issue, feel free to reopen. Thanks.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I have the latest 1.12
What operating system and processor architecture are you using (
go env
)?Linux Mint 19.1
go env
OutputWhat did you do?
Tried to run
GO111MODULE=on CGO_ENABLED=0 go build
outside of$GOPATH
in order to try go modules. But there seems some problem withnet/http
package.What did you expect to see?
correctly built
What did you see instead?
The text was updated successfully, but these errors were encountered: