frictionlessdata / tableschema-go

A Go library for working with Table Schema.
MIT License
46 stars 10 forks source link

Error when trying to build with go 1.14 #82

Closed endersonmaia closed 4 years ago

endersonmaia commented 4 years ago

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 commented 4 years ago

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!