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

error: reword sh to platform-neutral "shell command" #1002

Merged
merged 2 commits into from
Oct 19, 2021
Merged

Conversation

hdhoang
Copy link
Contributor

@hdhoang hdhoang commented Oct 16, 2021

A simple workaround for #412, to avoid confusion on Windows without sh. It's a hint to look up shell variable, instead of trying to find a UNIX sh implementation.

There's no existing test with this text, and I tried making some with not-a-command in shell, x:=\``, and recipe. But they are platform-specific too, and changes depending on whether I have busybox utils in PATH or not. So I have left them out for this PR.

Copy link
Owner

@casey casey left a comment

Choose a reason for hiding this comment

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

I think this is okay without tests. I feel like usually, tests that just check the contents of string literals aren't super useful, since they will just reproduce the string, and aren't testing complex behavior.

src/error.rs Outdated Show resolved Hide resolved
src/error.rs Outdated Show resolved Hide resolved
src/error.rs Outdated Show resolved Hide resolved
src/error.rs Outdated Show resolved Hide resolved
src/error.rs Outdated Show resolved Hide resolved
src/error.rs Outdated Show resolved Hide resolved
Co-authored-by: Casey Rodarmor <casey@rodarmor.com>
@hdhoang hdhoang marked this pull request as ready for review October 19, 2021 07:14
@hdhoang
Copy link
Contributor Author

hdhoang commented Oct 19, 2021

Done, Now you have done all the work :)

@casey
Copy link
Owner

casey commented Oct 19, 2021

Merging! This is still a huge improvement, and wouldn't have happened without your initiative.

@casey casey enabled auto-merge (squash) October 19, 2021 07:32
@casey casey merged commit 8eae8c6 into casey:master Oct 19, 2021
@hdhoang hdhoang deleted the no-sh branch October 19, 2021 08:58
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.

None yet

2 participants