mesosphere / mindthegap

Easily create and use bundles for air-gapped environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import command panics if invalid bundle is provided

mhrabovcin opened this issue · comments

#6 1.326 2023-09-21 13:54:26 INF  • Creating temporary directory...
#6 1.326  ✓ Creating temporary directory
#6 1.326 2023-09-21 13:54:26 INF  • Unarchiving image bundle "/tmp/mindthegap.tar"...
#6 1.343  ✓ Unarchiving image bundle "/tmp/mindthegap.tar"
#6 1.343 2023-09-21 13:54:26 INF  • Starting temporary Docker registry...
#6 1.348  ✓ Starting temporary Docker registry
#6 1.354 panic: runtime error: invalid memory address or nil pointer dereference
#6 1.354 [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1e4f244]
#6 1.354
#6 1.354 goroutine 1 [running]:
#6 1.354 github.com/mesosphere/mindthegap/cmd/mindthegap/importcmd/imagebundle.NewCommand.func1(0xc000f59200?, {0xc000642d40?, 0x2?, 0x2?})
#6 1.354        github.com/mesosphere/mindthegap/cmd/mindthegap/importcmd/imagebundle/image_bundle.go:88 +0x6e4
#6 1.354 github.com/spf13/cobra.(*Command).execute(0xc000f59200, {0xc000642d20, 0x2, 0x2})
#6 1.354        github.com/spf13/cobra@v1.7.0/command.go:940 +0x862
#6 1.354 github.com/spf13/cobra.(*Command).ExecuteC(0xc000005500)
#6 1.354        github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3bd
#6 1.354 github.com/spf13/cobra.(*Command).Execute(...)
#6 1.354        github.com/spf13/cobra@v1.7.0/command.go:992
#6 1.354 github.com/mesosphere/mindthegap/cmd/mindthegap/root.Execute()
#6 1.354        github.com/mesosphere/mindthegap/cmd/mindthegap/root/root.go:56 +0x55

https://github.com/mesosphere/mindthegap/blob/main/cmd/mindthegap/importcmd/imagebundle/image_bundle.go#L88