gomod2nix/tests/cli-args/script
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

4 lines
119 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
cd "${0%/*}"
exec $GOMOD2NIX generate "golang.org/x/tools/cmd/stringer@v0.1.11"