Closed bernermic closed 2 years ago
@bernermic, this is very weird :thinking:
That error seems to occur if main.go
references an option that has not been declared within docopt.txt
. I verified this by inserting the following lines at line 123
on master
:
case opts["--conf"].(bool):
cmd = cmdConf
Doing that produces the error that you're seeing. (master
otherwise builds and runs successfully on HEAD
upstream, however.)
I'm unfortunately rather ignorant of the process involved in building a snap
package, but is it possible that the docopt.txt
file has somehow gone stale? Does the build process involve any cache that can be cleaned?
@chrisallenlane I solved the issue now with packaging the released github binary and it works fine. Thanks for looking into my question :)
Sounds great, @bernermic. Thanks!
Hi @chrisallenlane, I face an issue with building the latest cheat version.
Issue description
cheat version 4.3.0 does not work with snap.
Seems to me the snap version is missing some config options? Do you have an idea how best to solve this? Problem seems to come from this: https://github.com/cheat/cheat/blob/master/cmd/cheat/main.go#L123
Reproduce
Best Michael