Skip to content

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

Open
@jsturtevant

Description

@jsturtevant

<!--
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.
-->

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions