go2nix icon indicating copy to clipboard operation
go2nix copied to clipboard

Reproducible builds and development environment for Go

Results 18 go2nix issues
Sort by recently updated
recently updated
newest added

I have some tools for which I'm overriding `golang.org/x/crypto/openpgp` inside my local codebase (with a directory `src/mypackage/vendor/golang.org/x/crypto/openpgp`). `go build` works correctly, but `go2nix save` fails with *`cannot find package "golang.org/x/crypto/openpgp"`*....

See Nix rfc0035. --- I have an unrelated question, why is `rev` in the `buildGoPackage` attrset and not inside `src`?

I've ran into an issue when trying to use go2nix together with go 1.13 (from [this commit](https://github.com/NixOS/nixpkgs/pull/68135/files#diff-615e2054c60ce9e59dcae004793e0d21R22)). go2nix doesn't work when go modules are on which is usually not problem...

As far as I can tell, `go2nix save` only uses `nix-prefetch-git` to get a hash for some things: https://github.com/kamilchm/go2nix/blob/52270bd92cd689729097fb4326f5b53eea431cd6/hash.go#L16 It doesn't actually need the files to end up in the...

The readme seems to imply that the code that you're packaging up needs to be a git repository? Can it be brought in otherways? I may have just a directory...

I was trying to update Telegraf and it took me hours to find out that you had to run go2nix from $GHOME/src/github.com/influxdata/telegraf/cmd/telegraf. Running it in $GHOME/src/github.com/influxdata/telegraf/ results in an empty...

When `go2nix` invokes `nix-prefetch-git`, it fails because nix can’t access the nix-daemon: ``` → go2nix save 2018/04/10 17:56:06 Initialized empty Git repository in /tmp/git-checkout-tmp-2emNcsso/payment-processors/.git/ From file:///home/philip/.go/src/gitlab.techcultivation.org/sangha/payment-processors * branch HEAD ->...

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

documentation

If you have a number of sub-packages that share a common repo, it can be very inconvenient to have to run `go2nix save` in each package separately.

enhancement

``` ➜ work mkdir rabbitmq_explorer ~/work ➜ work cd rabbitmq_explorer ~/work ➜ rabbitmq_explorer nix-shell -p go dep ~/work/rabbitmq_explorer [nix-shell:~/work/rabbitmq_explorer]$ go get -v github.com/kbudde/rabbitmq_exporter github.com/kbudde/rabbitmq_exporter (download) github.com/Sirupsen/logrus (download) Fetching https://golang.org/x/crypto/ssh/terminal?go-get=1 Parsing...