dotnet / dotnet/sdk

SDK 8.0.401: `dotnet workload install wasm-tools ` does not install correctly

Open
#42,919 8 comments 3 reactions 0 assignees View on GitHub
Area-Workloads untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Describe the bug
`dotnet workload install wasm-tools ` supposedly succeeds but there is a warning indicating a failure. The tool is listed as installed but attempting to compile a wasm project fails

```
sudo dotnet workload install wasm-tools

Welcome to .NET 8.0!
---------------------
SDK Version: 8.0.401

Writing workload pack installation record for Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.osx-x64 version 8.0.8...
Warning: Workload garbage collection failed with error: Workload version 8.0.401-baseline.24412.2 was not found..
```

```
dotnet workload list

Installed Workload Id Manifest Version Installation Source
--------------------------------------------------------------------
wasm-tools 8.0.8/8.0.100 SDK 8.0.400
```

```
sudo dotnet workload uninstall wasm-tools

Welcome to .NET 8.0!
---------------------
SDK Version: 8.0.401

Removing workload installation record for wasm-tools...
Workload uninstallation failed: Workload version 8.0.401-baseline.24412.2 was not found.
```

### To Reproduce

1. On OSX 13.6.9 (22G830)
2. Download / Install .NET 8.0.401 SDK -- https://dotnet.microsoft.com/en-us/download/dotnet/8.0
3. Run, `sudo dotnet workload install wasm-tools`
4. Attempt to compile a wasm project that depends on wasm-tools.

### Exceptions (if any)

```
Warning: Workload garbage collection failed with error: Workload version 8.0.401-baseline.24412.2 was not found
```

```
Workload uninstallation failed: Workload version 8.0.401-baseline.24412.2 was not found
```

```
/usr/local/share/dotnet/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.8/Sdk/WasmApp.Native.targets(366,5): error : File "/usr/local/share/dotnet/packs/Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.osx-x64/8.0.8/tools/emscripten/tools/cache.py", line 151, in get [redacted.csproj]
/usr/local/share/dotnet/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.8/Sdk/WasmApp.Native.targets(366,5): error : raise Exception(f'FROZEN_CACHE is set, but cache file is missing: "{shortname}" (in cache root path "{cachedir}")') [redacted.csproj]
/usr/local/share/dotnet/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/8.0.8/Sdk/WasmApp.Native.targets(366,5): error : Exception: FROZEN_CACHE is set, but cache file is missing: "sysroot_install.stamp"
```

### Further technical details
- SDK Version: 8.0.401
- OS: MacOS 13.6.9 (22G830)

### Mitigation
1. Rollback SDK version (I rolled back to 8.0.1)
2. Run `sudo dotnet workload clean`
3. Reinstall `wasm-tools` via `sudo dotnet workload install wasm-tools`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.