-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix Makefile to Support Spaces in Paths #4000
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Ethan Dieterich <[email protected]>
Can this PR be reviewed? We have found that we need this for environments that have a PATH with a space. Thanks! |
I wonder if this change is the reason why tests are failing |
Interesting:
Does this mean that I'm guessing that we also need: diff --git a/Makefile b/Makefile
index 3cc72405..f189183b 100644
--- a/Makefile
+++ b/Makefile
@@ -87,6 +87,7 @@ ifeq ($(shell uname | tr A-Z a-z), linux)
curl -L https://github.com/protocolbuffers/protobuf/releases/download/v>
endif
unzip bin/protoc.zip -d bin/protoc
+ chmod +x bin/protoc
rm bin/protoc.zip
bin/protoc-gen-go: For the second CI failure:
I'm not sure if that's the actual underlying error, but I do see that in the Github Action log. I'm assuming it's from the various calls to But offhand, I can't think of why adding the quotes to the PATH would make Oh, actually, I see this in the log output, too:
Odd. |
I added a commit to this PR that added the I haven't had time to dig into the 2nd failure yet, but I offhand wonder if that failed because protoc previously didn't run...? |
Signed-off-by: Jeff Squyres <[email protected]>
2fe2847
to
326d2bd
Compare
Oops -- had the wrong |
Overview
In this branch, I fixed issues my team and I encountered with the Makefile, where it would not function correctly when spaces were present in the path. The issue was traced back to how
PATH
andSHELL
were being set, leading to failures when runningmake
in directories with spaces in their names.What this PR does / why we need it
SHELL
passes thePATH
variable to ensure compatibility with/bin/sh
while keeping the correct environment settings./home/user/My Project/
), wheremake
previously failed due to improper path handling.Special notes for your reviewer