go-swagger: Generating spec cannot import dependencies
Problem statement
I’m unable to run the spec generator on my app. What am I doing wrong? https://gist.github.com/morenoh149/e44be6819bde86f52e7e
I get many errors of the form ... .go:10:2: could not import github.com/facebookgo/stackerr (cannot find package "github.com/ ...
Steps to reproduce
execute $ swagger generate spec -o ./swagger.json in project folder
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (9 by maintainers)
I uninstalled go-swagger from brew, installed it from source and it worked. So strange. And no, I installed it through brew:
I am running into this issue when trying to generate a swagger spec as well. I believe it is because I installed go with home brew on a mac so my library paths are different.
Command I am running:
swagger generate specFile I am trying to generate with: https://gist.github.com/gsquire/cce277b4bd10ba283f4522e896dc91d6Error trace: