this question also posted here: https://github.com/kataras/iris/issues/1081
I am using "iris" as the MVC framework in my golang project, and i use "dep" to manage the dependencies of my project.
the "iris" dependency was configured in "Gopkg.toml" as bellow:
and later i use "dep ensure -v" to download all the dependencies.
after the "ensure" command finished, i check the downloaded files in "vendor/github.com/kataras/iris/hero" folder, i found there is no source code files were downloaded, refer to the screen capture bellow:
so i cannot use "hero" component in my project, because the "hero" related package not installed in my project.
thanks all for your help ~
I'm very new to Go; but I had a similar issue with another library 'https://github.com/jedib0t/go-pretty'
The repo is cloned into
pkg/dep/sources/https---github.com-jedib0t-go--pretty/
however there is no Go code invendor/github.com/jedib0t/go-pretty/
I added an import
"github.com/jedib0t/go-pretty"
into one of my source code files and randep ensure -v
however the vendor copy does not have any Go code it it. I removed the folder and tried again however same result.What solved it for me was specifically importing the package I wanted into my code eg:
"github.com/jedib0t/go-pretty/table"
and runningdep ensure -v
again. I'm not sure why it worked but maybe my experience can help you or someone else.