Skip to content

Ignore parser version info in generated parser check #6

@clason

Description

@clason

Problem

While it's useful to ensure that any grammar changes are reflected in the parser, this becomes irritating in combination with the CLI build sha that is added to the parser, because most distros strip the git information when building (including cargo install!) so there is no way of locally producing the right parser header.

Possible solution

Use git diff | tail -n +1 to strip the first line from the diff (but then you can't rely on git-diff's exit code and would have to signal non-empty stripped diff by hand).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions