-
Notifications
You must be signed in to change notification settings - Fork 17
glide support? #19
Comments
I'll think about support for |
@nshalman That hack is not necessary at all. For example, you can do something like the following instead:- export GOPATH=$(mktemp -d /tmp/cerana.XXXXXX)
mkdir -p $GOPATH/src/github.com/cerana
cd $GOPATH/src/github.com/cerana
git clone https://github.com/cerana/cerana.git
cd cerana
git checkout ea99f44a58faffcbfa9b68d284340c4187f046dd
glide install
go2nix save At this point, all you need to do is copy the generated |
@rushmorem The deps.nix file becomes empty in your process. |
I don't think its a bug. Current Go vendoring scheme implies that every dependency found in |
I could also add |
This assumes that the |
I'm trying to package https://github.com/DataDog/gohai with this process and I'm also getting an empty file. Is there a workaround atm? |
Glide was changed a lot since this issue was created :/ I want to wait until golang/dep#380 and implement new
|
When I try that in my private repo I'm getting |
It's an internal company project that's not available publicly. If I remove the last part to get the input being piped to
Don't worry too much about it though. I just wanted to bring this to your attention so you know this doesn't always work out but I'm not really trying to make it work for this particular project. It's an old project I'm already rewriting in another language. |
It must be something with |
Awesome. |
Another vote for this, since a package I use uses glide for dependency management and I'd like to put it in nixpkgs. |
What about other package managers like |
There's a new thing for |
There's also discussion about the new go package management on HN as well. What if that becomes official? |
I'm currently building the Cerana tools with what is probably a bit of a terrible hack:
https://github.com/cerana/nixpkgs/blob/ceranaos/pkgs/os-specific/linux/cerana/default.nix#L21
We use glide to manage the dependencies, and I'm wondering if go2nix either already supports software doing vendoring with glide, if it's something that might come in the future, or if I should plan to stick with that hack for a while.
Thank you for all of your hard work making working with Go software in Nix as pleasant as possible!
The text was updated successfully, but these errors were encountered: