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

Fix parallel download errors when solution has multiple projects that use WasmComponent.Sdk #8

Open
jsturtevant opened this issue Jun 6, 2024 · 0 comments

Comments

@jsturtevant
Copy link
Contributor

<!--
This is not ideal because if your solution has multiple projects that use WasmComponent.Sdk, then if you
build in parallel in CI where your machine doesn't already have wasi-sdk/emsdk, then it may try to download
and extract the SDKs multiple times in parallel to the same disk location, which may cause it to fail.
The only reason this doesn't happen in this repo is that it explicitly runs the PrepareWasmSdks task before
building other projects.
For a proper fix, consider implementing an MSBuild task in C# that obtains wasi-sdk/emsdk, and uses a mutex
so that only one flow executes at a time, with others blocking until it's done.
-->

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

No branches or pull requests

1 participant