Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: error generating pkgs #172

Open
tim-goto opened this issue Oct 14, 2024 · 0 comments
Open

panic: error generating pkgs #172

tim-goto opened this issue Oct 14, 2024 · 0 comments

Comments

@tim-goto
Copy link

tim-goto commented Oct 14, 2024

Hey, thanks for the great tool :) Unfortunately I have an issue creating the toml file for this repo. To reproduce:

git clone https://github.com/veertuinc/anklet.git
pushd anklet
nix shell github:nix-community/gomod2nix
gomod2nix generate

results in this output:

INFO[0000] Parsing go.mod                                modPath=go.mod
INFO[0000] Downloading dependencies
panic: error generating pkgs: exit status 1

goroutine 1 [running]:
github.com/nix-community/gomod2nix/internal/cmd.generateFunc(0xb23dc0?, {0xb5a2c8?, 0x0?, 0x0?})
        /build/source/internal/cmd/root.go:67 +0x416
github.com/spf13/cobra.(*Command).execute(0xb23dc0, {0xb5a2c8, 0x0, 0x0})
        /build/source/vendor/github.com/spf13/cobra/command.go:987 +0xaa7
github.com/spf13/cobra.(*Command).ExecuteC(0xb23ae0)
        /build/source/vendor/github.com/spf13/cobra/command.go:1115 +0x417
github.com/spf13/cobra.(*Command).Execute(...)
        /build/source/vendor/github.com/spf13/cobra/command.go:1039
github.com/nix-community/gomod2nix/internal/cmd.Execute()
        /build/source/internal/cmd/root.go:124 +0x25
main.main()
        /build/source/main.go:6 +0x17

do you have any idea what might be wrong here? Thanks!

EDIT: I have checked the other issues I could find for this error but the patch version is defined in the go.mod and everything else wasn't applicable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant