Skip to content

Fixing pvr clone command

sirin k requested to merge fixing_pvr_clone_command into develop

Fixing pvr clone command

Problem solved:

I launched a pv-manifest CI with develop pvr so we can get the new format on pantavisor CI, but I got an error when cloning
$ pvr clone https://pvr.pantahub.com/pantahub-ci/rpi4_initial_latest/113 device-checkout
7bdd13f15773ab1 [OK]
a093226fa4233a6 [OK]
7e18ba019fafe12 [OK]
3bd0198df949c92 [OK]
834d31840a923e0 [OK]
ebb63d2c3b03069 [OK]
a71d32c85d89e9c [OK]
237277bb3586033 [OK]
62f92986988541a [OK]
eb65d0899557d0f [OK]
12c8d468094e3d0 [OK]
5090f4922c2492e [OK]
a9d4d4dd0abc885 [OK]
panic: assignment to entry in nil map
goroutine 1 [running]:
gitlab.com/pantacor/pvr/libpvr.(*Pvr).GetRepoRemote(0xc0003b76c0, 0xc00058c480, 0xc00058c400, 0x0, 0x0)
/app/libpvr/repolib.go:1674 +0x5d8
gitlab.com/pantacor/pvr/libpvr.(*Pvr).GetRepo(0xc0003b76c0, 0xc00045eb80, 0x3c, 0xc00048ec00, 0x19, 0x0)
/app/libpvr/repolib.go:1742 +0xfe
main.CommandClone.func2(0xc0005ae2c0, 0x0, 0x0)
/app/cmdclone.go:124 +0x80e
github.com/urfave/cli.HandleAction(0xcfe4e0, 0xe6ec50, 0xc0005ae2c0, 0xc0005ae2c0, 0x0)
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:526 +0x11a
github.com/urfave/cli.Command.Run(0xe25f73, 0x5, 0x0, 0x0, 0xc000116b10, 0x1, 0x1, 0xe49c46, 0x2a, 0x0, ...)
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174 +0x57a
github.com/urfave/cli.(*App).Run(0xc0005b0000, 0xc000132040, 0x4, 0x4, 0x0, 0x0)
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279 +0x7c7
main.main()
/app/main.go:136 +0x128c
anibal@anibal-msi:~/pantacor/src/devices$ pvr --version
pvr version 009-137-g4119da52

Merge request reports