mmcloughlin / avo

Generate x86 Assembly with Go
BSD 3-Clause "New" or "Revised" License
2.74k stars 90 forks source link

build: frustrating cli error due to empty stub file #57

Open mmcloughlin opened 5 years ago

mmcloughlin commented 5 years ago

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.

mmcloughlin commented 3 years ago

This was frustrating for @ericlagergren too:

https://gophers.slack.com/archives/C6WDZJ70S/p1619242553071400