My go app has a dependency on the foo library (hosted on github), but the latest commit of foo is broken, so I need to declare that I want to depend on an earlier commit.
In general, I want to be able to pin dependencies to certain commits (similar to the way Gemfile.lock with Rails/Bundler works)Is there any way to do that w/ Go?--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I generally agree with the Go team view on dependencies but as a simple help it would be very beneficial to be able to supply a tag commit id in the import. It is not meant as a solution to the dependencies problem but rather as a way to get somewhat repeatable builds in a world where a stable master branch is at best an ideal.
Yes I know but I would be fine with the build failing at that point.
Now I clone important deps and maintain them in a stable state as best I can which sort of works but can be a little bit of in some cases.
I like this way! However it remains to be seen if the disciplin and practise of this way of working is upheld. I think my stuff is safe since i rely only on dependencies created by long time go users.
I like this way! However it remains to be seen if the disciplin and practise of this way of working is upheld. I think my stuff is safe since i rely only on dependencies created by long time go users.
The result of 'go get' already is a "local fork" (actually a clone) of
the remote repository. The go tool never updates this clone until
explicitly told so. So there's no need to rename any import paths and
yet you can have a stable foreign repository (clone) version. How to
mount and/or make such repository available to the whole team is
another question - outside of this topic scope, but for sure easy in
several different ways.
Keith Rarick has some preliminary ideas, but no code yet: https://github.com/kr/godep
My go app has a dependency on the foo library (hosted on github), but the latest commit of foo is broken, so I need to declare that I want to depend on an earlier commit.
| Rory McGuire ClearFormat - Research and Development UK : 44 870 224 0424 USA : 1 877 842 6286 RSA : 27 21 466 9400 Email: rmcg...@clearformat.com Website: www.clearformat.com |
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/P4DXddX2fbY/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.