Commit graph

13 commits

Author SHA1 Message Date
adisbladis
1ffea526a0 Add package generation for non development packages
This makes it possible to generate packages that you do not have a
local checkout for, e.g. running:
`gomod2nix generate --outdir example/ golang.org/x/tools/cmd/stringer`

This will be useful for packaging dependencies that you are not
developing, but just simply packaging.
2022-06-14 05:15:43 +08:00
adisbladis
52125f6072 Use cobra for command line parsing 2022-06-13 23:15:35 +08:00
adisbladis
1eb70073c4 Bump dependencies 2022-06-13 20:37:42 +08:00
adisbladis
a4bed25a86 Add mkGoEnv function
This creates an `mkGoEnv` function which takes care of adding the
correct Go package to your development environment and installs
development dependencies from tools.go in a Nix derivation.

The "normal" workflow around Go with tools.go just sticks development
dependencies in $GOBIN which isn't ideal since you have no separation
between projects.
2022-06-13 20:37:42 +08:00
adisbladis
d7830bd5b2 Filter MacOS .DS_Store directories
Now that we're hashing files directly from the Go sources on the host
system we need to avoid these files.

Closes #49.
2022-06-01 01:46:29 +08:00
adisbladis
3de2f9540e Bump go.mod dependencies 2022-05-30 19:21:48 +08:00
adisbladis
53270b071e Replace dependency on Nix with go-nix
This calculates the output hashes in pure Go and removes Nix from
being a run time dependency of gomod2nix.

Additionally it should be faster, but that's untested.
2022-05-28 22:56:52 +08:00
adisbladis
de2aeaeb0b Run go mod tidy 2022-05-28 22:56:52 +08:00
HuangYi
807b9e6c63
fix build with go 1.18 2022-05-20 17:41:24 +08:00
adisbladis
25d7fc13aa
Add comprehensive logging 2020-10-29 13:26:16 +01:00
adisbladis
c2cd1e1fff
Add native output format 2020-10-29 13:26:16 +01:00
adisbladis
bdf43e8d31
Add support for old deps.nix as an output format 2020-10-29 13:26:15 +01:00
adisbladis
74d937f555
Basic parsing/fetching working 2020-10-29 13:26:15 +01:00