Comments (10)
+1
from godep.
Note that with godep save -copy
, explicit bzr support is unnecessary.
from godep.
Hi Keith I really want to use the tool but I have projects using Bazaar and Mercurial. The mgo driver is my most important problem right now.
export GOPATH=$HOME/example
go get github.com/goinggo/mongorules
cd $GOPATH/src/github.com/goinggo/mongorules
godep save -copy
godep: Bazaar is unsupported: labix.org/v2/mgo
godep: Bazaar is unsupported: labix.org/v2/mgo/bson
godep: error loading dependencies
Am I doing something wrong?
from godep.
I was wrong, there are a couple of VCS-specific things godep does
in the save command:
- get the current commit id (e.g. git rev-parse HEAD)
- describe the current commit (e.g. git describe)
- ensure there are no uncommitted changes (e.g. git diff HEAD)
https://github.com/kr/godep/blob/master/vcs.go#L36-L38
These should be easy to add bzr support for.
I'll give this a shot today.
The other commands in that file vcs.go are the ones that
can be circumvented by -copy, and, in a happy coincidence,
those are the ones I would have trouble doing in bzr.
from godep.
@ardan-bkennedy please give this another try! :)
from godep.
@ardan-bkennedy please give this another try! :)
godep save -copy
godep: dirty working tree: /Users/bill/example/src/labix.org/v2/mgo
godep: error loading dependencies
I cleaned out the workspace and used 'go get' to get the project and tried the latest version of the tool.
—
Reply to this email directly or view it on GitHub.
from godep.
What happens when you run this?
$ cd /Users/bill/example/src/labix.org/v2/mgo
$ bzr status
This tool uses bzr status
to decide if any changes have been
made to the checked-out copy of each package. If the working
tree is dirty, the revision number will be wrong (since it won't
account for any changes in the working tree since the last
commit), so godep will refuse to use that dependency.
You could also try:
$ rm -rf /Users/bill/example/src/labix.org/v2/mgo
$ go get labix.org/v2/mgo
$ godep save -copy
from godep.
What happens when you run this?
$ cd /Users/bill/example/src/labix.org/v2/mgo
$ bzr status
working tree is out of date, run 'bzr update'
So I ran the bar update command and everything worked
bzr update
M bson/bson.go
All changes applied successfully.
Updated to revision 246 of branch /Users/bill/example/src/labix.org/v2/mgo
cd github.com/OutCast-IO/DataTask/
godep save -copy
So this is great but also troubling. I guess go get did not properly get the code initially.
I may need to add this to the post
This tool uses bzr status to decide if any changes have been
made to the checked-out copy of each package. If the working
tree is dirty, the revision number will be wrong (since it won't
account for any changes in the working tree since the last
commit), so godep will refuse to use that dependency.You could also try:
$ rm -rf /Users/bill/example/src/labix.org/v2/mgo
$ go get labix.org/v2/mgo
$ godep save -copy
—
Reply to this email directly or view it on GitHub.
from godep.
All software has bugs. The idea is for godep to do the
right thing in the common case. When the user runs
'go get', followed by 'godep save' or 'godep save -copy',
it should just work.
I'll open another bug for this.
from godep.
Just opened #15.
from godep.
Related Issues (20)
- Command not found: 'godep'
- No command 'godep' found HOT 2
- update vendored deps to latest remote version HOT 1
- Add banner to README with link to golang/dep HOT 2
- Question about commit the vendor directory HOT 2
- sdgfc 4qswczeswdzx HOT 1
- sdgfc 4qswczeswdzxF HOT 1
- so many errors!!! HOT 1
- Godep should use go env for missing ENV variables HOT 1
- - HOT 1
- Honor build.Context.BuildTags and build.Context.ReleaseTags (and possibly file suffixes) HOT 4
- Backward compatible removal of package in dependency can cause godep save error: "no buildable Go source files in <pkg>" HOT 1
- godep does not see vendored packages within thirdpadrty dependencies HOT 1
- dep ensure hangs if ssh key has a passphrase
- Consistent way to reference Gopkg.toml in CLI HOT 1
- Can the specified directory be excluded when `godep save`
- Changed git provider. Most vendor packages are still using the old git link
- Build failed after godep save HOT 1
- i used gin, gin used +build HOT 2
- vert toml to json HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godep.