juju / charmstore-client

Client for charmstore.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show command panics

facundofc opened this issue · comments

This is happening:

$ charm show grafana
panic: interface conversion: interface {} is nil, not map[string]interface {}

goroutine 1 [running]:
github.com/juju/charmstore-client/cmd/charm/charmcmd.(*showCommand).Run(0xc0001b4120, 0xc00013c1e0, 0x0, 0x0)
	/build/charm/parts/charmstore-client/build/cmd/charm/charmcmd/show.go:148 +0xaa9
github.com/juju/cmd.(*SuperCommand).Run(0xc000166140, 0xc00013c1e0, 0xc00013c1e0, 0x0)
	/build/charm/parts/charmstore-client/go/pkg/mod/github.com/juju/cmd@v0.0.0-20200108104440-8e43f3faa5c9/supercommand.go:523 +0x2cd
github.com/juju/cmd.Main(0xe96600, 0xc000166140, 0xc00013c1e0, 0xc000032190, 0x2, 0x2, 0x408165)
	/build/charm/parts/charmstore-client/go/pkg/mod/github.com/juju/cmd@v0.0.0-20200108104440-8e43f3faa5c9/cmd.go:387 +0x2c2
main.main()
	/build/charm/parts/charmstore-client/build/cmd/charm/main.go:23 +0x125

These are my versions:

$ charm version
charmstore-client 2.5.2
charm-tools 2.8.3+snap-620+git-1-736b1ad

Even though the charm store's deprecated, it would be nice to get a deprecation notice instead of a panic, maybe pointing to the transition post on Discourse?