When using peg via go run the executable name is a path that changes every invocation. This PR hardcodes the first argument to peg so that subsequent runs of go run always generate the same output file.
Before
// Code generated by /var/folders/w2/fb613tqx6rzftr9k0v_pcfmr0000gn/T/go-build1383365192/b001/exe/peg grammar.peg DO NOT EDIT.
When using peg via
go run
the executable name is a path that changes every invocation. This PR hardcodes the first argument topeg
so that subsequent runs ofgo run
always generate the same output file.Before
After