Re: [go-nuts] Re: Packaging a Go module for Nix

2019-03-13 Thread Wael Nasreddine
I'm going to describe how I ended up packaging the go modules (and so far it seems to work correctly). I have also replied inline below I'm using a two-phase approach to package Go modules for Nix: 1. During the first phase, a package named after the module with the suffix *-go-modules* i

Re: [go-nuts] Re: Packaging a Go module for Nix

2019-03-13 Thread Wael Nasreddine
actual proxy process involved, and > everything is just being read directly from the local filesystem. An even > more detailed example is here in this "Go Modules by Example" walk-through: > https://github.com/go-modules-by-example/index/tree/master/012_modven

Re: [go-nuts] Re: Packaging a Go module for Nix

2019-03-13 Thread Wael Nasreddine
On Monday, March 11, 2019 at 10:01:04 AM UTC-7, Manlio Perillo wrote: > > Do you perhaps have the same requirements as in the thread > https://groups.google.com/forum/#!topic/golang-dev/DD88cds-LuI > as reported by Nicolas Mailhot? > > That is, you need to patch the upstream source but keep the sam

[go-nuts] Re: Packaging a Go module for Nix

2019-03-10 Thread Wael Nasreddine
On Sunday, March 10, 2019 at 5:01:01 PM UTC-7, Manlio Perillo wrote: > > On Monday, March 11, 2019 at 12:30:02 AM UTC+1, Wael Nasreddine wrote: >> >> TL;DR Given a Go module, assuming that I have already done `go mod >> download`: Is it possible to prevent network acces

[go-nuts] Re: Packaging a Go module for Nix

2019-03-10 Thread Wael Nasreddine
On Sunday, March 10, 2019 at 6:44:10 PM UTC-7, Manlio Perillo wrote: > > On Monday, March 11, 2019 at 2:06:44 AM UTC+1, Wael Nasreddine wrote: >> >> >> >> On Sunday, March 10, 2019 at 5:01:01 PM UTC-7, Manlio Perillo wrote: >>> >>> On Monday, Marc

[go-nuts] Re: Packaging a Go module for Nix

2019-03-10 Thread Wael Nasreddine
On Sunday, March 10, 2019 at 5:01:01 PM UTC-7, Manlio Perillo wrote: > > On Monday, March 11, 2019 at 12:30:02 AM UTC+1, Wael Nasreddine wrote: >> >> TL;DR Given a Go module, assuming that I have already done `go mod >> download`: Is it possible to prevent network acces

[go-nuts] Packaging a Go module for Nix

2019-03-10 Thread Wael Nasreddine
TL;DR Given a Go module, assuming that I have already done `go mod download`: Is it possible to prevent network access if I delete the entire `$GOPATH/pkg/mod/cache`? Hello, I'm a member of Nix , and I'm attempting to create a new infrastructure for packaging Go modules