For a taste of what's out there, see: http://go.pkgdoc.org/index.
For a taste of what's out there, see: http://go.pkgdoc.org/index.
I couldn't find any way to specify a specific tag or revision, so it's basically always getting the bleeding edge developer build of the library code. That might be nice in some situations, but for getting work done I almost always want the most recent stable release.
Am I missing something?
It's a convenient hack but nothing more.
[noir "1.2.0"]
ensures I'm always grabbing the same version. In Go, appears the only way to guarantee this is to check in the full source of the library alongside your own in your repo. {deps, [
{quoted, "1.0.3",
{git, "git://git.corp.smarkets.com/quoted.erl.git", {tag, "1.0.3"}}},
{proper, ".*",
{git, "git://git.corp.smarkets.com/proper.git", {branch, "master"}}}
]}.I've seen this plugin before but its not particularly useful without dependency checking. It's a start though. I'll have to look at leiningen to see if it exposes hooks for that sort of thing.
$ sudo apt-get install golang
$ go get github.com/pauek/garzon/grz
That's it, and it takes a few seconds.If Go adds some method to specify a tagged version that could be pretty nice though.
I hope it goes without saying that there's no way this kind of hack (neat as it is) is a substitute for a proper package management system like npm (which is a very good package manager).
npm install express
Not only do npm handle versioning for you, you also don't have to remember the host or username. Obviously Go is a younger community, and could make a package manager some day, but I'm puzzled by how you're comparing this positively with npm.And I'm not saying this feature of Go is better than npm, I also use npm and I like it very much. What I like is the fact that Go comes already with this feature and I don't need anything extra.
But when installing packages, I have to say, npm is fantastic.
Furthermore npm can install git URLs directly too, including tags and branches if you need a particular one. Just specify the url as the "version" in your dependencies section of package.json. Totally trivial.
npm install git://github.com/substack/node-optimist.git