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

With .NET 7, unable to repair deleted files after executing "dotnet workload repair" on Mac #27276

Open
yinjiehe01 opened this issue Aug 19, 2022 · 1 comment

Comments

@yinjiehe01
Copy link

Repro steps:

  1. Prepare clean Mac OS
  2. Install the standalone .NET 7 SDK: 7.0.100-rc.1.22415.4-osx-arm64 from Pipelines - Run 20220815.1-7.0.100-rc.1.22415.4-144791 artifacts (azure.com)
  3. Execute: dotnet workload install wasm-tools --skip-manifest-update
  4. Execute: dotnet workload list
  5. Perform additional sanity checks to determine if the installed workload is functional.
  6. Navigate to the where some of the workload packs were installed, e.g.
    /usr/local/share/dotnet/packs/Microsoft.NET.Runtime.MonoAOTCompiler.Task/7.0.0-rc.1.22409.3/Sdk and delete a number of random files
  7. Execute: dotnet workload repair

Exceptions

The command succeeds and repairs the files that were deleted.

Actual result:

The command succeeded, but it didn't repair deleted files.
Screen Shot 2022-08-19 at 16 30 20

dotnet --info:

m1e2e@m1e2es-Mac-mini ~ % dotnet --info
.NET SDK:
Version: 7.0.100-rc.1.22415.4
Commit: 79469bd877

Runtime Environment:
OS Name: Mac OS X
OS Version: 12.5
OS Platform: Darwin
RID: osx.12-arm64
Base Path: /usr/local/share/dotnet/sdk/7.0.100-rc.1.22415.4/

Host:
Version: 7.0.0-rc.1.22409.3
Architecture: arm64
Commit: 9e713232a6

.NET SDKs installed:
7.0.100-rc.1.22415.4 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.0-rc.1.22411.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.0-rc.1.22409.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels Aug 19, 2022
@yinjiehe01
Copy link
Author

yinjiehe01 commented Aug 19, 2022

  1. This issue is also repro on SDK 6.0.400.
  2. Similar issue is reported and fixed on Windows. For details, please refer to With .NET 7, unable to repair deleted files after executing "dotnet workload repair" #23503

@marcpopMSFT marcpopMSFT added this to the Backlog milestone Aug 23, 2022
@marcpopMSFT marcpopMSFT removed the untriaged Request triage from a team member label Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants