qax-os / excelize

Go language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
https://xuri.me/excelize
BSD 3-Clause "New" or "Revised" License
18k stars 1.71k forks source link

Not able to get excelcize module #977

Closed qascade closed 3 years ago

qascade commented 3 years ago

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


**Describe the results you received:**

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


**Describe the results you expected:**
 I wanted the module to be successfully downloaded and installed
**Output of `go version`:**
```go version go1.16.6 darwin/amd64```

**Environment details (OS, Microsoft Excel™ version, physical, etc.):**
OS = Mac OS Big Sur 
Physical Device = Mac Book Pro 2021
Arnie97 commented 3 years ago

Please refer to #973 for go.mod replace workarounds.

qascade commented 3 years ago
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.

xuri commented 3 years ago

Please delete go mod cache $GOPATH/pkg/mod/cache and try again.

qascade commented 3 years ago

I created a new directory for GOPATH and it worked.