Commit graph

58 commits

Author SHA1 Message Date
adisbladis
c9d91f60a7 flake.nix: Use development shell from shell.nix 2022-05-26 18:29:48 +08:00
adisbladis
d1df21fc5a flake.nix: Use overlay from separate overlay.nix expression 2022-05-26 18:17:02 +08:00
adisbladis
0b8585ba6c shell.nix: Add gomod2nix to development shell 2022-05-26 18:14:23 +08:00
adisbladis
17446bc33d Bump flake.lock 2022-05-26 18:12:32 +08:00
adisbladis
db9e176729
Merge pull request #38 from yihuang/demonstrate-error
fix symlink nested package
2022-05-26 18:08:43 +08:00
adisbladis
a47254f93d
Merge pull request #37 from yihuang/ci-test
run the test script in CI
2022-05-20 18:17:58 +08:00
adisbladis
fcda3a148a
Merge pull request #32 from charles-dyfis-net/flakeUpdate_2022-03-26
Run a flake update to get flake-utils w/ aarch64-darwin in default set
2022-05-20 18:17:24 +08:00
adisbladis
96f7710270
Merge pull request #29 from yihuang/fix-rev-regex
Fix pseudo version string regex
2022-05-20 18:17:06 +08:00
HuangYi
6cdf8f60e2
reproduce the relPath issue
Closes: #35
2022-05-20 17:41:57 +08:00
HuangYi
807b9e6c63
fix build with go 1.18 2022-05-20 17:41:24 +08:00
HuangYi
d151d0b036
fix relPath when there's replacement 2022-05-20 17:41:10 +08:00
HuangYi
7f6bfc93a3
fix another edge case 2022-05-20 16:31:44 +08:00
HuangYi
e54afe9222
fix symlink nested package
- added a test case to demonstrate the fail scenario
2022-05-20 15:54:53 +08:00
HuangYi
7dca9453ba
run the test script in CI 2022-05-20 14:48:28 +08:00
Charles Duffy
c1cf277739
Run a flake update to get a flake-utils with aarch64-darwin in default set 2022-03-26 14:10:01 -05:00
HuangYi
2d7eacc3ae
Fix pseudo version string regex
Closes: #28
2022-02-15 18:10:22 +08:00
adisbladis
fc5adcc530
Merge pull request #25 from yihuang/fix-regex
add regex to filter comment lines
2022-01-10 20:29:16 +12:00
HuangYi
c3f885a5b6
fix comments filter 2022-01-10 16:07:26 +08:00
adisbladis
596d01fd55
Merge pull request #24 from doronbehar/go-stdenv
builder: Use stdenv from arguments, not go.stdenv
2021-12-11 16:44:10 +12:00
Doron Behar
2428841585 builder: Use stdenv from arguments, not go.stdenv
It allows users to override the builder to use for example
`pkgsStatic.stdenv`.
2021-11-27 10:30:40 +02:00
adisbladis
67f22dd738
Merge pull request #9 from yihuang/fix-regex
fix regex expression on macos
2021-07-29 10:22:45 -05:00
adisbladis
f737d502ee
Merge pull request #12 from Mic92/flake
fix flake
2021-07-29 10:22:35 -05:00
Jörg Thalheim
8fae67792d fix flake
the old nixpkgs version would fail to build gomod2nix
2021-07-03 11:23:23 +02:00
yihuang
af2ff6eb58
fix regex expression on macos 2021-04-02 10:59:32 +08:00
adisbladis
c78d7b9f15
Merge pull request #8 from tweag/local-vendor
Add support for local replace directives
2021-03-29 17:38:57 +02:00
adisbladis
442b4154e2
Add support for local replace directives
This fixes relative path modules not being correctly vendored by
parsing go.mod in Nix and vendoring them into the correct directory in
the Nix sandbox.

Ideally this should also come with a pluggable source filtering
mechanism and/or maybe use any present gitignore files like
poetry2nix does.

To use this new feature you have to pass a new `pwd` param to
`buildGoApplication` as such:
```
buildGoApplication {
  pname = "foo";
  version = "bar";
  pwd = ./.;
  src = lib.cleanSource ./.;
}
```

Fixes #2
2021-03-29 17:20:50 +02:00
adisbladis
5dffe7b6ef
Merge pull request #4 from GTrunSec/flake-overlay
Fix: flake overlay
2021-03-17 02:07:49 +02:00
GTrunSec
0333f00e5f
Fix: flake overlay 2021-03-16 16:08:52 -07:00
adisbladis
f8ad3b8024
Remove Go vendor check relax patch
This is now in upstream nixpkgs
2021-02-10 15:50:58 +01:00
adisbladis
06cfdc3c54
default.nix: Filter tests 2021-01-12 17:55:00 +01:00
adisbladis
addf1164e9
Add comment from FreeBSD commit to vendor check patch
I want to port this patch into nixpkgs, and we need a good rationale.
2021-01-12 17:54:15 +01:00
adisbladis
929d740884
Format with nixpkgs-fmt 2020-12-03 16:23:40 +01:00
adisbladis
bb2553fa3e
Expose gomod2nix package in the overlay 2020-12-03 16:23:39 +01:00
adisbladis
9f972211c7
Add flake.nix to root 2020-12-03 16:23:39 +01:00
adisbladis
69fbaaa458
Add gitignore 2020-12-03 16:23:39 +01:00
adisbladis
1472bfba57
Add gomod2nix.toml to repo 2020-12-03 16:23:39 +01:00
adisbladis
1ffee75cfb
Add README file 2020-12-03 16:23:39 +01:00
adisbladis
f8d6851ba9
Add python test script 2020-12-03 16:23:39 +01:00
adisbladis
6ea9066253
Remove builder from output 2020-10-29 13:26:18 +01:00
adisbladis
64b60b5a15
Build gomod2nix with itself 2020-10-29 13:26:18 +01:00
adisbladis
d331f4fd01
Factor out builder call 2020-10-29 13:26:17 +01:00
adisbladis
956903170b
Split builder into its own directory 2020-10-29 13:26:17 +01:00
adisbladis
2034c858bd
Create in-sandbox builder for env 2020-10-29 13:26:17 +01:00
adisbladis
869ea9a6b2
Add an initial Go builder 2020-10-29 13:26:17 +01:00
adisbladis
ecf0c76348
Fix relative paths inside sources 2020-10-29 13:26:17 +01:00
adisbladis
e51f884b85
Add vendorPath to correctly link the vendor directory in the nix build 2020-10-29 13:26:17 +01:00
adisbladis
a5f0e022c6
Start changing the format to work in the Nix sandbox 2020-10-29 13:26:17 +01:00
adisbladis
19394d538e
Fix commitShaRev regex for some more complicated packages
Example "version" string this fixes: v0.5.0-alpha.5.0.20200819165624-17cef6e3e9d5
2020-10-29 13:26:16 +01:00
adisbladis
25d7fc13aa
Add comprehensive logging 2020-10-29 13:26:16 +01:00
adisbladis
51402965c7
Add flags to CLI 2020-10-29 13:26:16 +01:00