dep was the “official experiment.” The Go toolchain, as of 1.11, has (experimentally) adopted an approach that sharply diverges from dep. As a result, we are continuing development of dep, but gearing work primarily towards the development of an alternative prototype for versioning behavior in the toolchain.
The Go community now has the dep project to manage dependencies. Please consider trying to migrate from Glide to dep. Glide will continue to be supported for some time but is considered to be in a state of support rather than active feature development.
[ykyuen@camus dep-example]$ dep init Using master as constraint for direct dep github.com/dustin/go-humanize Locking in master (bb3d318) for direct dep github.com/dustin/go-humanize
[ykyuen@camus dep-example]$ dep ensure -add github.com/leekchan/accounting Fetching sources...
"github.com/leekchan/accounting" is not imported by your project, and has been temporarily added to Gopkg.lock and vendor/. If you run "dep ensure" again before actually importing it, it will disappear from Gopkg.lock and vendor/.
[ykyuen@camus dep-example]$ go run main.go hello world That file is 83 MB. You're my 193rd best friend. You owe $6,582,491. $123,456,789.21 $12,345,678.00 $25,925,925.67 -$25,925,925.67 $123,456,789.21
dep should be perfectly fine at pulling in git submodules in the case you describe. I just replicated what you describe here locally, and the problem isn’t submodules — it’s that there’s no Go code in github.com/go-goracle/goracle/odpi, so it can’t be imported directly.
Write your response...
Never miss a post from Chris Gregori, when you sign up for Ednsquare.