Closed qascade closed 3 years ago
Please refer to #973 for go.mod
replace
workarounds.
go get github.com/360EntSecGroup-Skylar/excelize/v2
go get: module github.com/360EntSecGroup-Skylar/excelize/v2: Get "https://proxy.golang.org/github.com/360%21ent%21sec%21group-%21skylar/excelize/v2/@v/list": unexpected EOF
Infact, my whole work is stuck. I get this error for every module I try to include. I tried reinstalling go, but even that didn't work.
go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/sksingh/Library/Caches/go-build"
GOENV="/Users/sksingh/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/sksingh/.go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/sksingh/.go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.16.6/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.16.6/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.6"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/sksingh/Desktop/Projects/E-School/E-Kaksha-Backend/src/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 -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/tz/5snjszw95nz3qwzh1dchd6sc0000gn/T/go-build2395227420=/tmp/go-build -gno-record-gcc-switches -fno-common"
I tried the command in ubuntu VM. At first ,it worked and now I am getting the same error in my VM.
Please delete go mod cache $GOPATH/pkg/mod/cache
and try again.
I created a new directory for GOPATH and it worked.
Description Whenever I try to add a go dependency in go.mod using
go get
command it fails.Steps to reproduce the issue: 1.``` src git:(master) go get github.com/xuri/excelize/v2
go get: github.com/xuri/excelize/v2@master: invalid version: Get "https://proxy.golang.org/github.com/xuri/excelize/v2/@v/master.info": unexpected EOF