Skip to content
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

Failed to splat Microsoft.VC.14.29.16.10.CRT.x64.Desktop.base.vsix: The system cannot find the file specified. (os error 2) #107

Closed
Owen-CH-Leung opened this issue Nov 9, 2023 · 0 comments · Fixed by #108

Comments

@Owen-CH-Leung
Copy link
Contributor

Further to the release of 0.4.0, I tried to bump the dependency version in the cargo-xwin project as per the PR below:

https://github.com/rust-cross/cargo-xwin/pull/80/files

Version 0.4.0 introduce a few backward-incompatible API so I've made a few tiny changes in the project source code. They are:

  • when calling xwin::prune_pkg_list, I passed in None for sdk_version and crt_version.
  • Insidexwin::Ops::Splat, when trying to construct SplatConfig, I pass in None for the map parameter
  • when calling ctx.execute, I passed in an empty string "".to_string() into the sdk_version argument

All these changes seem fine to me, since I pass the CI test that runs on ubuntu machine (FYI the CI test runs the command target/release/cargo-xwin xwin build --target x86_64-pc-windows-msvc --manifest-path tests/hello-tls/Cargo.toml) . But when it's running on a window machine, I got the captioned error.

So I tried to run it on my local window machine and I'm able to reproduce the error. But when I inspect my local xwin directory (i.e. C:\Users\user\AppData\Local\cargo-xwin\xwin, I did see this file is present at C:\Users\user\AppData\Local\cargo-xwin\xwin\dl\Microsoft.VC.14.29.16.10.CRT.x64.Desktop.base.vsix.

I did some debugging on my end and can confirm that ctx.work_dir was already set as C:\Users\user\AppData\Local\cargo-xwin\xwin

FYI here's the full error msg : https://github.com/rust-cross/cargo-xwin/actions/runs/6798447381/job/18482619447?pr=80

Can I ask for your help to see if it's a bug from xwin itself ? Appreciate any insights from you. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant