Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

github.com/tealeg/xlsx could not be downloaded by dep #568

Closed
felipeweb opened this issue May 12, 2017 · 7 comments
Closed

Comments

@felipeweb
Copy link
Contributor

when use dep as vendor tool i receive the error

vendor/github.com/tealeg/xlsx/lib.go:11:2: cannot find package "xml" in any of:

	/Users/felipeweb/Code/go/src/github.com/nuveo/orchestrator.core/processProduce/vendor/xml (vendor tree)
	/usr/local/Cellar/go/1.8/libexec/src/xml (from $GOROOT)
	/Users/felipeweb/Code/go/src/xml (from $GOPATH)"

but govendor it works

@mgutz
Copy link

mgutz commented May 12, 2017

Ran into same issue a few minutes. I had to specify branch = "master" instead of the discovered version.

@sdboyer
Copy link
Member

sdboyer commented May 12, 2017

huh. this outcome shouldn't be possible.

please provide reproduction steps

@felipeweb
Copy link
Contributor Author

felipeweb commented May 13, 2017

@sdboyer
1 - create a project that use the package as a depency
2 - update dependencies using dep ensure -update

@sdboyer
Copy link
Member

sdboyer commented May 13, 2017

create a project that use the package as a depency

Do you mean "lists the project in Gopkg.toml, or "imports the project?" If it's the former, this is by design (see, most recently, #509); if it's the latter, then we have a bug.

@felipeweb
Copy link
Contributor Author

@sdboyer it's the second

@sdboyer
Copy link
Member

sdboyer commented May 13, 2017

OK. But, your reproduction steps don't produce an error.

Please give me as much context as possible, instead of forcing me to ask questions one at a time.

@sdboyer
Copy link
Member

sdboyer commented May 13, 2017

Though, looking at the repository, the problem is probably that, yes, you need to specify you want master - otherwise it selects semver-compliant releases that were tagged six years ago.

If that is the problem, then your reproduction steps don't include "run go build", as that's where the error comes from - not dep.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants