GithubHelp home page GithubHelp logo

bzr support about godep HOT 10 CLOSED

tools avatar tools commented on May 28, 2024
bzr support

from godep.

Comments (10)

emicklei avatar emicklei commented on May 28, 2024

+1

from godep.

kr avatar kr commented on May 28, 2024

Note that with godep save -copy, explicit bzr support is unnecessary.

from godep.

ardan-bkennedy avatar ardan-bkennedy commented on May 28, 2024

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.

kr avatar kr commented on May 28, 2024

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.

kr avatar kr commented on May 28, 2024

@ardan-bkennedy please give this another try! :)

from godep.

ardan-bkennedy avatar ardan-bkennedy commented on May 28, 2024

@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.

kr avatar kr commented on May 28, 2024

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.

ardan-bkennedy avatar ardan-bkennedy commented on May 28, 2024

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.

kr avatar kr commented on May 28, 2024

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.

kr avatar kr commented on May 28, 2024

Just opened #15.

from godep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.