Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass empty suffix to sed on macOS #598

Merged
merged 1 commit into from
Mar 31, 2021
Merged

Conversation

jsharpe
Copy link
Member

@jsharpe jsharpe commented Mar 31, 2021

sed on macOS requires a suffix when using -i. Current usage will create temporary files with -e suffixes so pass an empty suffix to avoid creating the backup files on macOS.

@jsharpe jsharpe requested a review from UebelAndre March 31, 2021 22:09
@jsharpe jsharpe requested a review from oquenchil as a code owner March 31, 2021 22:09
@UebelAndre
Copy link
Collaborator

Interesting, how'd you come across this one? Curious why this doesn't currently fail in any existing tests.

@jsharpe
Copy link
Member Author

jsharpe commented Mar 31, 2021

Interesting, how'd you come across this one? Curious why this doesn't currently fail in any existing tests.

It won't fail to run it just creates extra temporary files that aren't required. Came across it because I was looking how the shell toolchain handled the difference in sed arguments for in-place to create an example for #596

@UebelAndre UebelAndre merged commit 18b491b into bazel-contrib:main Mar 31, 2021
@jsharpe jsharpe deleted the macos_sed branch August 3, 2022 22:06
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.

2 participants