You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an issue with milksnake when setuping a CI pipeline for Linux, Mac and Windows.
For Windows I SET the CARGO_TARGET_DIR to a folder I can cache between runs. To prevent issue with Windows backslash being wrongly escaped (or not), I use a path similar to C:/cargo_cache/project_name/target.
After some debugging, I've realized that milksnake assumes / is used as paths separators when looking for files. See for example
I had an issue with milksnake when setuping a CI pipeline for Linux, Mac and Windows.
For Windows I
SET
theCARGO_TARGET_DIR
to a folder I can cache between runs. To prevent issue with Windows backslash being wrongly escaped (or not), I use a path similar toC:/cargo_cache/project_name/target
.After some debugging, I've realized that milksnake assumes
/
is used as paths separators when looking for files. See for examplemilksnake/milksnake/setuptools_ext.py
Line 146 in ef0723e
and
milksnake/milksnake/setuptools_ext.py
Line 165 in ef0723e
Those two lines will
join()
the search path with thein_path
argument which is split with forward slashes.I thus end up with paths that look like
C:cargo_cache/project_name/target
and milksnake can't find the expected files.It seems those lines attempt to replace the forward slashes with the platform's separator, but it's not doing a proper job.
If that is the expected behaviour, I would suggest doing something like that instead:
or even just
or maybe even simpler
The text was updated successfully, but these errors were encountered: