prefix-dev / rattler-build

rattler-build is a universal package builder for Windows, macOS and Linux
https://prefix-dev.github.io/rattler-build
BSD 3-Clause "New" or "Revised" License
212 stars 45 forks source link

Output directory on network path not working #1043

Open chaumage opened 2 months ago

chaumage commented 2 months ago

I am trying to run rattler-build with an output directory on network and a git repo as source:

rattler-build build --output-dir //server/share/my-dir

but it fails with the following error:

fatal: could not create leading directories of '\\?\UNC\server\share\my_dir\src_cache\my_project.git': Invalid argument

It seems rattler is adding the ?\UNC\ part to the adress, which is making git clone fail. I tried running git clone with the ?\UNC\ part and it gave me the same error.

wolfv commented 2 months ago

Ah, interesting! I think we could use the dunce crate to get rid of these, possibly.