Skip to content

Conversation

kevichi7
Copy link

Adds a cargo:warning if git is not available during build.
This makes it easier to understand why RIPGREP_BUILD_GIT_HASH might be missing, without breaking the build.

Copy link
Owner

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Note that using eprintln! here is incorrect, and causes this warning to get swallowed. You need to print the warning to stdout.

I also made a few other touch-ups in my rollup branch.

@BurntSushi BurntSushi added the rollup A PR that has been merged with many others in a rollup. label Aug 19, 2025
BurntSushi pushed a commit that referenced this pull request Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR that has been merged with many others in a rollup.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants