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

go get failed #86

Open
yuanhuikai opened this issue May 7, 2021 · 2 comments
Open

go get failed #86

yuanhuikai opened this issue May 7, 2021 · 2 comments

Comments

@yuanhuikai
Copy link

image

GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/yhk/.cache/go-build"
GOENV="/home/yhk/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/yhk/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/yhk/go"
GOPRIVATE=""
GOPROXY="https://goproxy.io,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.2"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/yhk/goWorkspace/photoprism/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1699168475=/tmp/go-build -gno-record-gcc-switches"

@bekha-io
Copy link

bekha-io commented Nov 7, 2023

Any updates?

@yyle88
Copy link

yyle88 commented Oct 18, 2024

同样的问题:

go get -u github.com/360EntSecGroup-Skylar/goreporter
go: go.mod file not found in current directory or any parent directory.
	'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.

按照readme里面的,已经不能安装啦,得这样安装:

admin@lele-de-MacBook-Pro ~ % go install github.com/360EntSecGroup-Skylar/goreporter@latest

但是还是会报错:

go: downloading github.com/360EntSecGroup-Skylar/goreporter v0.0.0-20180902115603-df1b20f7c5d0
go: finding module for package github.com/facebookgo/inject
go: finding module for package github.com/fatih/color
go: finding module for package github.com/reconquest/loreley
go: finding module for package github.com/golang/glog
go: finding module for package github.com/kisielk/gotool
go: finding module for package golang.org/x/tools/go/gcexportdata
go: finding module for package github.com/json-iterator/go
go: finding module for package github.com/reconquest/barely
go: finding module for package golang.org/x/tools/go/loader
go: finding module for package golang.org/x/tools/go/ssa
go: finding module for package golang.org/x/tools/go/ssa/ssautil
go: finding module for package mvdan.cc/lint
go: finding module for package golang.org/x/tools/go/gcimporter15
go: downloading mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b
go: downloading github.com/reconquest/barely v0.0.0-20211011075640-c4e789dc39f8
go: downloading github.com/facebookgo/inject v0.0.0-20180706035515-f23751cae28b
go: downloading github.com/reconquest/loreley v0.0.0-20211011075601-29b1d7b0ad91
go: found github.com/facebookgo/inject in github.com/facebookgo/inject v0.0.0-20180706035515-f23751cae28b
go: found github.com/fatih/color in github.com/fatih/color v1.17.0
go: found github.com/golang/glog in github.com/golang/glog v1.2.2
go: found github.com/json-iterator/go in github.com/json-iterator/go v1.1.12
go: found github.com/reconquest/barely in github.com/reconquest/barely v0.0.0-20211011075640-c4e789dc39f8
go: found github.com/reconquest/loreley in github.com/reconquest/loreley v0.0.0-20211011075601-29b1d7b0ad91
go: found golang.org/x/tools/go/gcexportdata in golang.org/x/tools v0.26.0
go: found github.com/kisielk/gotool in github.com/kisielk/gotool v1.0.0
go: found golang.org/x/tools/go/loader in golang.org/x/tools v0.26.0
go: found golang.org/x/tools/go/ssa in golang.org/x/tools v0.26.0
go: found golang.org/x/tools/go/ssa/ssautil in golang.org/x/tools v0.26.0
go: found mvdan.cc/lint in mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b
go: downloading golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
go: downloading github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421
go: downloading golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
go: finding module for package golang.org/x/tools/go/gcimporter15
go: finding module for package github.com/facebookgo/structtag
go: downloading github.com/facebookgo/structtag v0.0.0-20150214074306-217e25fb9691
go: found github.com/facebookgo/structtag in github.com/facebookgo/structtag v0.0.0-20150214074306-217e25fb9691
go: finding module for package golang.org/x/tools/go/gcimporter15
Documents/work/go/pkg/mod/github.com/360!ent!sec!group-!skylar/goreporter@v0.0.0-20180902115603-df1b20f7c5d0/linters/simplecode/lint/lint.go:23:2: module golang.org/x/tools@latest found (v0.26.0), but does not contain package golang.org/x/tools/go/gcimporter15

总而言之最后就失败啦。

admin@lele-de-MacBook-Pro ~ % 

安装不上啦。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants