-
Notifications
You must be signed in to change notification settings - Fork 438
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
Folder flattening, unpredictable slash (/) direction #393
Comments
I'm not sure exactly what the bug report is stating. Are you using the master version of clasp? |
Sorry I wasn't clear enough! Report updated. Not sure if I'm using master version of clasp. I installed it via |
OK. |
Any updates? It would be really helpful to fix this issue also for our Windows/macOS mixed team - our Windows developers are not able to use the |
It seems that this problem was already fixed in the latest version (#351), but unfortunately, we have to stay on version 1.x for now - version 2 always fails during the push phase with error:
but that is another issue... So, I think this one should be closed/resolved. |
I am developing on Windows, (using the cmder console emulator for a unix-like experience.)
Expected Behavior
When I run
clasp push
my files in sub-directories are flattened into files with names like:sidebar/index.html
sidebar/style.html
Even though I'm on Windows, the slash character is a forward slash / (normal for unix).
Actual Behavior
When I run
clasp push
my files in sub-directories are flattened into files with names like:sidebar\index.html
sidebar\style.html
The names use a backslash \ (normal for windows).
Steps to reproduce the problem
I believe the "expected behavior" was happening, and then abruptly the "unexpected behavior" started happening, messing up some of my relative imports.
I'm not sure what changed. I may have run
sudo npm i @google/clasp -g
, updating my version of clasp?Preferred Behavior
I'm not actually sure which behavior the developers expect, but I think I would prefer
clasp push
always flattens files with a forward slash / regardless of OS, or else that this be a setting in.clasp.json
.Specifications
node -v
): v8.11.4clasp -v
): 1.6.3The text was updated successfully, but these errors were encountered: