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: runtime error: invalid memory address or nil pointer dereference #241

Open
seanly opened this issue May 14, 2022 · 0 comments
Open

Comments

@seanly
Copy link
Contributor

seanly commented May 14, 2022

hd version: v0.0.58

command:

hd install https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv4.5.4/kustomize_v4.5.4_linux_amd64.tar.gz

err log:

start to fetch the config
start to download from https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv4.5.4/kustomize_v4.5.4_linux_amd64.tar.gz
start to download with 4 threads, size: 4547228, unit: 1136807
Downloading part 1:  [====================================================================] 100%
Downloading part 3:  [====================================================================] 100%
Downloading part 2:  [====================================================================] 100%
Downloading part 0:  [====================================================================] 100%
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0xa04af4]

goroutine 1 [running]:
github.com/linuxsuren/http-downloader/cmd.(*installOption).install(0xc00009f900, 0xc000128f00, 0xc00011b530, 0x1, 0x1, 0xc00010e120, 0xc000107cd8)
        /home/runner/work/http-downloader/http-downloader/cmd/install.go:164 +0x114
github.com/linuxsuren/http-downloader/cmd.(*installOption).runE(0xc00009f900, 0xc000128f00, 0xc00011b530, 0x1, 0x1, 0x0, 0x0)
        /home/runner/work/http-downloader/http-downloader/cmd/install.go:225 +0x6f8
github.com/spf13/cobra.(*Command).execute(0xc000128f00, 0xc00011b500, 0x1, 0x1, 0xc000128f00, 0xc00011b500)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:856 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0xc000128a00, 0xc000022128, 0xc000128a00, 0xc00007e058)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:974 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:902
main.main()
        /home/runner/work/http-downloader/http-downloader/main.go:10 +0x47

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