Martin Baillie
29f6eb7bd5
Parameterise modules file in mkGoEnv
...
This makes `mkGoEnv` more similar to `buildGoApplication`.
Signed-off-by: Martin Baillie <martin@baillie.id>
2022-09-26 19:58:36 +10:00
Martin Baillie
d9ea49c898
Parameterise tools.go
...
Signed-off-by: Martin Baillie <martin@baillie.id>
2022-09-13 10:17:46 +10:00
adisbladis
89cd0675b9
Merge pull request #94 from nix-community/rsync-vendor
...
builder: Use rsync for copying vendor environment
2022-09-07 09:53:23 +12:00
adisbladis
3b4076283d
builder: Use rsync for copying vendor environment
...
cp will fail on dangling symlinks and it's errors can't be ignored.
rsync gives us a greater degree of control so let's use that.
2022-09-07 09:44:36 +12:00
adisbladis
cc75990c60
Update tweag reference to nix-community in docs
2022-09-02 17:14:14 +12:00
adisbladis
d4eb034312
Update tweag reference to nix-community in flake template
2022-09-02 17:13:35 +12:00
adisbladis
b5bb2405a9
Merge pull request #90 from nix-community/gomod-parser-comments
...
Litter go.mod parser with comments
2022-09-02 17:06:18 +12:00
adisbladis
01426762a5
Litter go.mod parser with comments
2022-09-02 17:02:56 +12:00
adisbladis
b7508fbe45
Merge pull request #89 from nix-community/no-copy-src-follow-sym
...
Nixpkgs integration nits
2022-09-02 16:50:10 +12:00
adisbladis
82718bac0b
Don't needlessly copy internal sources in builder
2022-09-02 16:46:05 +12:00
adisbladis
32ba72372b
Follow symlinks when copying vendor environment
2022-09-02 16:46:05 +12:00
adisbladis
37752fe423
Merge pull request #88 from nix-community/max-go-version-select
...
Use the highest compatible Go version whenever possible
2022-09-02 16:41:13 +12:00
adisbladis
36f0c54655
Use the highest compatible Go version whenever possible
...
It should be generally safe to compile any older Go project with a
newer compiler and in the few cases where it isn't it could be
manually passed.
2022-09-02 16:38:03 +12:00
adisbladis
6c4e4b7f57
Change stripVersion comment to indicate that it's not rubbish
...
But just extra data that Nix can't handle in version attributes.
2022-09-02 16:35:58 +12:00
adisbladis
9f06fea972
Merge pull request #87 from nix-community/remove-generic-expr
...
Remove generic builder expression
2022-09-02 16:24:08 +12:00
adisbladis
a5fabc015d
builder: Don't use a default go
argument internally
2022-09-02 16:18:41 +12:00
adisbladis
8525f7f0e5
Remove generic builder expression
...
This was an attempt to get maximal sharing with Nixpkgs but in hindsight it's better to just have some code duplication.
2022-09-02 16:14:39 +12:00
adisbladis
a02a4ea0b2
builder: Remove unused removeExpr variable
2022-09-02 16:11:43 +12:00
adisbladis
4620c777ae
Merge pull request #86 from nix-community/symlink-indent-dehadouken
...
Symlink indent dehadouken
2022-09-02 16:04:23 +12:00
adisbladis
9b360feaf2
builder/symlink: Factor out into separate functions to make indents more readable
...
Implement suggestion from https://github.com/NixOS/nixpkgs/pull/188272#discussion_r958608686 .
2022-09-02 15:59:32 +12:00
adisbladis
fc2d392494
Remove usage of deprecated ioutil package
2022-09-02 15:59:32 +12:00
adisbladis
b57059cef6
Merge pull request #85 from srhb/conditional-sdk-upgrade
...
overlay: fallback to default callPackage for stable nixpkgs
2022-08-31 21:06:03 +12:00
Sarah Brofeldt
c3f52f3d79
overlay: fallback to default callPackage for stable nixpkgs
2022-08-31 09:55:27 +02:00
adisbladis
0d9952aa8c
Merge pull request #83 from nix-community/nix-community-pkg-name
...
Change package name from github.com/tweag/gomod2nix to github.com/nix-community/gomod2nix
2022-08-28 02:35:55 +08:00
adisbladis
0eefe2b57d
Change package name from github.com/tweag/gomod2nix to github.com/nix-community/gomod2nix
2022-08-28 06:33:04 +12:00
adisbladis
bb6a0be71c
Add clarification about Gomod2nix and it's relationship to Trustix
2022-08-25 23:10:07 +12:00
adisbladis
d6c403a312
Put license before sponsors in readme
...
The current layout feels a bit odd in terms of how it flows.
2022-08-25 23:08:37 +12:00
adisbladis
a7460b6634
Add logos and acknowledgements of project sponsors
2022-08-25 23:07:29 +12:00
adisbladis
6622c8aee4
Bump version to 1.4.0
2022-08-25 20:21:38 +12:00
adisbladis
098fb7f906
Merge pull request #82 from adisbladis/passthru-updatescript
...
Add passthru.updateScript when package is fully auto generated
2022-08-24 21:34:55 +12:00
adisbladis
fe398402f4
Add passthru.updateScript when package is fully auto generated
...
Meaning when both src and modules comes from the same call to `gomod2nix generate` like so:
``` bash
$ gomod2nix generate github.com/simeji/jid/cmd/jid
```
2022-08-24 16:25:42 +08:00
adisbladis
1e03e4a757
Bump version to 1.3.0
2022-08-24 15:05:04 +08:00
adisbladis
3b14c28de9
Merge pull request #81 from adisbladis/null-modules
...
Allow passing `null` as modules for packages that don't have dependencies or that vendor them
2022-08-24 19:04:02 +12:00
adisbladis
94dc447f5c
Allow passing null
as modules for packages that don't have dependencies or that vendor them
2022-08-24 15:01:08 +08:00
adisbladis
0f5574480e
Add test for repo using vendored modules
2022-08-24 15:01:08 +08:00
adisbladis
02243eca0b
Bump version to 1.2.0
2022-08-24 12:05:27 +08:00
adisbladis
a54ee7973a
Merge pull request #80 from adisbladis/more-pr-notes
...
Implement more suggestions from nixpkgs #188035
2022-08-24 16:02:38 +12:00
adisbladis
5149c67e6e
Enable Cgo by default
...
To be in line with the behaviour of buildGoModule since https://github.com/NixOS/nixpkgs/pull/177594 .
2022-08-24 11:57:43 +08:00
adisbladis
055777bf88
Generate shell completions using process substitution
...
Practically this makes no difference but it's slightly more elegant.
2022-08-24 11:57:43 +08:00
adisbladis
704aa9566a
Add buildGoApplication and mkGoEnv parameters to gomod2nix expression
...
This is so nixpkgs can inject it from another location.
2022-08-24 11:57:43 +08:00
adisbladis
3e9c89c6dc
Merge pull request #79 from adisbladis/no-vet-lint
...
don't run vet linter
2022-08-24 15:57:35 +12:00
adisbladis
ac99f239a5
don't run vet linter
...
This is a port of 5b76f42372
.
2022-08-24 11:34:30 +08:00
adisbladis
5d07a6931c
Bump version to 1.1.0
2022-08-24 10:22:09 +08:00
adisbladis
1e45ba4683
Merge pull request #78 from adisbladis/nixpkgs-pr-notes
...
Implement notes from nixpkgs pr #188035
2022-08-24 14:20:36 +12:00
adisbladis
659c2ad32d
Remove linkerd test
...
It takes too long in CI and doesn't exercise any code paths not already tested by other tests.
2022-08-24 10:17:09 +08:00
adisbladis
4141b461c4
builder/symlink.go: Remove commented code
2022-08-24 09:51:55 +08:00
adisbladis
f3314213be
Add ldflags to buildGoApplication function signature
...
This is not strictly required but is good for discoverability.
2022-08-24 09:51:55 +08:00
adisbladis
564d1edc26
Set SSL_CERT_FILE by setup hook rather than explicit
2022-08-24 09:51:55 +08:00
adisbladis
b40e660f51
don't set trimpath for tests
...
This is a port of 64e6cc1a1d
.
2022-08-24 09:41:59 +08:00
adisbladis
a1ab7d6ed6
Merge pull request #76 from adisbladis/unit-test-subdirs
...
Run unit tests under subdirs
2022-08-24 13:07:21 +12:00