Install Lastest Modules

227 views
Skip to first unread message

Andrew

unread,
May 14, 2019, 6:37:36 PM5/14/19
to golang-nuts
I want to install the latest version(v2.0.0) of excelize library using:


go get -u github.com/360EntSecGroup-Skylar/excelize@latest

But the go.mod file updated using the old version 1.4.1

module learn

go 1.12

require (
github.com/360EntSecGroup-Skylar/excelize v1.4.1 // indirect
github.com/stretchr/objx v0.2.0 // indirect
)

If I use the @v2.0.0 command, the error shows out:

$ go get -u github.com/360EntSecGroup-Skylar/excelize@v2.0.0
go
: finding github.com/360EntSecGroup-Skylar/excelize v2.0.0
go
: github.com/360EntSecGroup-Skylar/excelize@v0.0.0-20190502075747-b1f632d40841: go.mod has post-v0 module path "github.com/360EntSecGroup-Skylar/excelize/v2" at revision b1f632d40841
go
get: error loading module requirements

Please help!

Thanks,
Andrew

Marcin Romaszewicz

unread,
May 14, 2019, 6:44:03 PM5/14/19
to Andrew, golang-nuts
go get -u github.com/360EntSecGroup-Skylar/excelize/v2 will do what you want. You then have to import " github.com/360EntSecGroup-Skylar/excelize/v2" in all your Go files.

-- Marcin

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/36c0f7c1-f692-4c66-a3cf-e39a0f919d8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tamás Gulácsi

unread,
May 14, 2019, 11:40:14 PM5/14/19
to golang-nuts
Where you import it, import .../excelize/v2

Andrew

unread,
May 15, 2019, 1:38:53 AM5/15/19
to golang-nuts
It works great. Thanks.

Reply all
Reply to author
Forward
0 new messages