Skip to content

Make executable name static in generated code - #138

Merged
pointlander merged 1 commit into
pointlander:masterfrom
debugmiller:executable-name
Sep 3, 2024
Merged

pointlander merged 1 commit into
pointlander:masterfrom
debugmiller:executable-name

Conversation

@debugmiller

Copy link
Copy Markdown
Contributor

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.

After

// Code generated by peg grammar.peg DO NOT EDIT.

@sashamelentyev

Copy link
Copy Markdown
Contributor

@pointlander friendly ping. I need this too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants