irondash / cargokit

Integrate cargo build with flutter plugins and applications.
Other
61 stars 19 forks source link

Cannot build on Windows when directory uses symlinks #74

Open 0xNF opened 3 months ago

0xNF commented 3 months ago

This issue stems from this issue over in the Flutter Rust Bridge project.

The maintainers there say this is a cargokit issue. I can build the project in question when I go to the real non symlinked directory, but otherwise I get unresolvable errors about finding directories:


Get-Item : Cannot find path 'C:\Users\0xnf\Documents\projects\experiments\frb_test_2\Users\nf' because it does
not exist.
At C:\Users\0xnf\projects\experiments\frb_test_2\windows\flutter\ephemeral\.plugin_symlinks\rust_lib_frb_test_2\cargokit\
cmake\resolve_symlinks.ps1:18 char:17
+         $item = Get-Item $realPath
+                 ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\0xnf\Doc...test_2\Users\nf:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand