-
Notifications
You must be signed in to change notification settings - Fork 396
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
Spaces in project paths break BLT #1328
Comments
@swichers, I was able to reproduce this issue when the repo name itself has a space in it (i.e. the top-level directory), but not otherwise. Are you seeing the same behavior? Steps:
|
@swichers is this a new issue with 8.7.0 or did it exist prior? I can't seem to reproduce it exactly, though I do get this error when the repo dir contains a space: |
I updated my alias to this, and then could reproduce the error:
|
@grasmash I saw the issue on 8.7 and 8.6.14 but this was an existing project with established BLT aliases. My bash alias is:
Maybe the exact error message depends on the command that is being run? I was testing with @malikkotob We saw the error with the following folder structure: I took my working repo at This is both 8.6.14 and 8.7:
Note that I only snipped the successful output, not anything that failed. The developer scenario here is onboarding a new developer to an existing project. We did notice that even after fixing the space in his project path there was still 'weirdness' sticking around from the space (cached/generated files?) causing errors. We had him rebuild the project from scratch (but still using the existing repo files) and it worked. |
I did some hacking on this and it's not any blt command, but instead any blt command that winds up passing its arguments directly to the shell. In 55d6d95 I have some minor changes that allow me to run (Note this is against 8.6.14 but the issue is in 8.7 as well.) |
Submitted the work done here + an additional commit in PR #1349. Build currently failing - https://travis-ci.org/acquia/blt/builds/220627065. Yet to dig in to see why that is, but am unable to reproduce locally.
|
I think there are more changes necessary just based on this: (8.6 version)
If one of those has problems (the |
Yeah I was just aiming to get a more concrete example of what was broken (and what could fix it), not an all-encompassing fix. That said, @grasmash is work on this ticket useful given the planned changes from Phing? |
Fixing it in Robo would be worthwhile, if it's actually an issue there. |
Probably related, I get: Creating BLT templated files...
|
My system information:
When I run this command:
I get the following output:
There are several places where paths are passed raw to the shell without escaping or quoting, and this causes the command to fail.
The text was updated successfully, but these errors were encountered: