Skip to content
This repository has been archived by the owner on May 11, 2019. It is now read-only.

bunch lock doesn't emit refs for non-dependencies (e.g. commands) #16

Closed
tamird opened this issue May 19, 2015 · 3 comments
Closed

bunch lock doesn't emit refs for non-dependencies (e.g. commands) #16

tamird opened this issue May 19, 2015 · 3 comments

Comments

@tamird
Copy link
Contributor

tamird commented May 19, 2015

My project uses goimports as an executable (meaning no file depends on it) and running bunch lock emits the following into Bunchfile.lock:

"golang.org/x/tools/cmd/goimports": "",

Is this behaviour expected? Why?

@dkulchenko
Copy link
Owner

bunch uses go's provided deps list to get the list of packages to use during 'bunch generate'.

Does running go list --json . in your package directory have goimports in the list? If so, there's a dependency on it somewhere, or perhaps it's a subdependency for one of your deps.

@tamird
Copy link
Contributor Author

tamird commented May 19, 2015

No, goimport is not in the list - I manually added it to the Bunchfile with bunch install --save golang.org/x/tools/cmd/goimport. The surprising part is that bunch lock doesn't actually lock goimport.

@dkulchenko
Copy link
Owner

Ah, I see. That's a bug - looking into it.

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

2 participants