dotnet / dotnet/Scaffolding

Fails to work on Mac

Open
#3,474 1 comment 0 reactions 0 assignees View on GitHub
area-dotnet-scaffolding
Dominant language
C#
Stars
818
Forks
260
Avg merge
1d 8h
Merged PRs (30d)
10

Description

I have tried multiple scaffolds, and each time it gives me an error after I select a command name:

`System.UnauthorizedAccessException: Access to the path '/var/install' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
at System.IO.Enumeration.FileSystemEnumerator`1.DequeueNextDirectory()
at System.IO.Enumeration.FileSystemEnumerator`1.DirectoryFinished()
at System.IO.Enumeration.FileSystemEnumerator`1.FindNextEntry()
at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Microsoft.DotNet.Tools.Scaffold.Interactive.Flow.Steps.ParameterDiscovery.GetProjectFiles()
at Microsoft.DotNet.Tools.Scaffold.Interactive.Flow.Steps.ParameterDiscovery.PromptInteractivePicker(IFlowContext context, Nullable`1
pickerType)
at Microsoft.DotNet.Tools.Scaffold.Interactive.Flow.Steps.ParameterDiscovery.PromptAsync(IFlowContext context, String title)
at Microsoft.DotNet.Tools.Scaffold.Interactive.Flow.Steps.ParameterDiscovery.DiscoverAsync(IFlowContext context)
at Microsoft.DotNet.Tools.Scaffold.Interactive.Flow.Steps.ParameterBasedFlowStep.RunAsync(IFlowContext context, CancellationToken
cancellationToken)
at Spectre.Console.Flow.FlowRunner.RunAsync(CancellationToken cancellationToken) in D:\a\_work\1\s\src\spectre.flow\Flow\FlowRunner.cs:line 98`

I also tried it with sudo and got the same error just different path name.

Mac os 15.6 (24G84)
Macbook Pro M1 Pro
dotnet 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.