Glean fails to build on Windows if username contains a whitespace
Categories
(Data Platform and Tools :: Glean: SDK, defect, P3)
Tracking
(Not tracked)
People
(Reporter: Dexter, Unassigned)
References
Details
(Whiteboard: [telemetry:glean-rs:backlog])
That's how I spent my lucky hours today. Turns out my new Windows account has a whitespace in it, so does my user directory. While building glean, we invoke the Miniconda installer (through the gradle python envs plugin, to silently install python in the user's gradle directory. The command is the following:
Miniconda3-4.5.11-Windows-x86_64.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /S "/D=C:\Users\User Name.gradle\glean\bootstrap-4.5.11\Miniconda3"
Apparently, the plugin tries to do the smart thing and wraps the path in double quotes, but documentation states it shouldn't.
To fix this, we should probably file a PR upstream to not wrap paths with spaces in doublequotes.
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Ouch. You're always out on the bleeding edge.
If we can't fix this upstream in the plugin, maybe we could try to convert it to a DOS path before sending it to the plugin, e.g. like this in Powershell. Maybe Gradle/Groovy has an API for that, but I haven't been able to find it...
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Updated•4 years ago
|
Description
•