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
adisbladis
ab5ec79935
Run unit tests under subdirs
...
Bug:
Due to the way `buildGoDir` function was repurposed to also run `go
test`, if `checkFlags` was defined, `go test` was ran only at the top
level directory. Only the first element of `checkFlags` array would get
passed to the `go test` command as arguments.
Fix:
Now the first parameter to `buildGoDir` is handled as the command. If
the command is "test" `checkFlags` get passed as arguments along with
other build flags like ldflags, tags, etc.
Readability:
- Iteratively build a flag array in `buildGoDir` instead of single long
variable expansion command line.
- Bash style: Single line local assignment of positional parameters.
This is a port of 89864413b2
.
2022-08-24 09:00:33 +08:00
adisbladis
8054136f81
Merge pull request #75 from adisbladis/no-ln-cp
...
Copy vendor directory instead of symlinking to them
2022-08-24 12:20:48 +12:00
adisbladis
4d9ea46f79
Copy vendor directory instead of symlinking to it
...
As pointed out in
https://github.com/NixOS/nixpkgs/pull/188035#discussion_r953044264
this can be a source of errors when builders do things they shouldn't.
I'm not really happy about this change as it causes quite a bit more
IO for larger dependency graphs.
2022-08-24 08:05:37 +08:00
adisbladis
db17a7914d
Merge pull request #74 from adisbladis/generic-builder
...
Refactor to generic builder expression
2022-08-23 22:53:33 +08:00
adisbladis
4a59ba5a69
Refactor to generic builder expression
...
This will make nixpkgs dumps (ie dumping gomod2nix into nixpkgs) easier going forward.
2022-08-23 22:48:09 +08:00
adisbladis
338342f107
Bump version to 1.0.0
2022-08-23 21:30:33 +08:00
adisbladis
26d81380a1
Merge pull request #73 from adisbladis/mkgoenv-compiler
...
Fix Go compiler missing from mkGoEnv created environments
2022-08-23 21:16:44 +08:00
adisbladis
bca2a1231e
Fix Go compiler missing from mkGoEnv created environments
...
Closes #68
2022-08-23 21:11:28 +08:00
adisbladis
b8c2216317
builder/install.go: Make build failures more apparent by attaching stdout/stderr
2022-08-17 15:36:21 +08:00
adisbladis
78068d481c
Merge pull request #69 from yihuang/master
...
requires a newer Apple SDK on macOS
2022-08-11 18:43:00 +08:00
adisbladis
d1e95112bd
Merge pull request #70 from yihuang/fix-regex
...
fix: Invalid regex on macOS
2022-07-29 22:44:54 +08:00
HuangYi
71fd703317
Invalid regex on macOS
...
- fix the regex
2022-07-29 19:38:34 +08:00
HuangYi
2be74ae917
Merge remote-tracking branch 'fork/master'
2022-07-21 09:48:00 +08:00
HuangYi
50385ada23
requires a newer Apple SDK on macOS
2022-07-21 09:40:17 +08:00
HuangYi
598c5ab1a6
requires a newer Apple SDK on macOS
2022-07-20 12:05:59 +08:00
adisbladis
40d32f82fc
Merge pull request #65 from adisbladis/minor-builder-refactor
...
Minor builder refactor
2022-06-15 06:21:49 +08:00