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

Error when trying to build with go 1.14 #82

Closed
endersonmaia opened this issue Apr 18, 2020 · 1 comment
Closed

Error when trying to build with go 1.14 #82

endersonmaia opened this issue Apr 18, 2020 · 1 comment

Comments

@endersonmaia
Copy link

Overview

I'm trying to start collaborating with an old issue to add xslx support (#68) but when trying to follow README.md instructions, I can't make it work.

there goes the transcriptions of the commands I tried (trial and error)

$ go version
go version go1.14.2 darwin/amd64
$ cd $GOPATH/go/src/github.com/frictionlessdata/tableschema-go
$ pwd
/Users/endersonmaia/Development/go/src/github.com/frictionlessdata/tableschema-go
$ dep ensure
$ go test ./..
can't load package: package ./..: no Go files in /Users/endersonmaia/Development/go/src/github.com/frictionlessdata
$ go build
go: inconsistent vendoring in /Users/endersonmaia/Development/go/src/github.com/frictionlessdata/tableschema-go:
	github.com/matryer/is@v0.0.0-20170112134659-c0323ceb4e99: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/satori/go.uuid@v1.1.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory
$ go mod vendor
$ go build
can't load package: package .: no Go files in /Users/endersonmaia/Development/go/src/github.com/frictionlessdata/tableschema-go
$ go get all
go: github.com/satori/go.uuid upgrade => v1.2.0
go: github.com/matryer/is upgrade => v1.3.0
go: downloading github.com/matryer/is v1.3.0
go: downloading github.com/satori/go.uuid v1.2.0
go: finding module for package gopkg.in/check.v1
go: downloading gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f
go: found gopkg.in/check.v1 in gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f
go: finding module for package github.com/niemeyer/pretty
go: downloading github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e
go: found github.com/niemeyer/pretty in github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e
go: github.com/kr/text upgrade => v0.2.0
go: downloading github.com/kr/text v0.2.0
$ go build
go: inconsistent vendoring in /Users/endersonmaia/Development/go/src/github.com/frictionlessdata/tableschema-go:
	github.com/kr/text@v0.2.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/matryer/is@v1.3.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/niemeyer/pretty@v0.0.0-20200227124842-a10e7caefd8e: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/satori/go.uuid@v1.2.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	gopkg.in/check.v1@v1.0.0-20200227125254-8fa46927fb4f: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/matryer/is@v0.0.0-20170112134659-c0323ceb4e99: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
	github.com/satori/go.uuid@v1.1.0: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod

run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory

Please preserve this line to notify @danielfireman (lead of this repository)

danielfireman added a commit that referenced this issue Apr 19, 2020
That was necessary because `dep` is no longer the recommended way of managing dependencies. Actually, using dep in go 1.13+ will lead to errors.

#82
@danielfireman
Copy link
Collaborator

Hi @endersonmaia .. thanks for reporting it!

I updated the README file. The problem here is that you should not use dep with go1.14.

Please re-open this issue (or open a new one) if you run into any trouble. Thanks!

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

2 participants