If you run an avo script and encounter an error of some kind, it will often leave an empty stub file lying around. The next time you run the script it'll die with an error like
$ go generate ./examples/args/...
can't load package: package github.com/mmcloughlin/avo/examples/args:
examples/args/stub.go:1:1: expected 'package', found 'EOF'
It won't work until you manually delete the stub.go file. It would be good to fix this frustration.
If you run an
avo
script and encounter an error of some kind, it will often leave an empty stub file lying around. The next time you run the script it'll die with an error likeIt won't work until you manually delete the
stub.go
file. It would be good to fix this frustration.