Project restore produces lots permission denial errors on macOS
My project build succeeds, but I am seeing lots of permission denial errors on a macOS image:
118 Determining projects to restore...
119 Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.codeanalysis.csharp/index.json'.
120 Access to the path '/Users/appveyor/.local/share/NuGet' is denied.
121 Permission denied
122 Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.sourcelink.github/index.json'.
123 Access to the path '/Users/appveyor/.local/share/NuGet' is denied.
124 Permission denied
125 Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.collections.immutable/index.json'.
126 Access to the path '/Users/appveyor/.local/share/NuGet' is denied.
127 Permission denied
128 Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/nullable/index.json'.
129 Access to the path '/Users/appveyor/.local/share/NuGet' is denied.
130 Permission denied
131 Failed to download package 'Microsoft.CodeAnalysis.CSharp.3.8.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.codeanalysis.csharp/3.8.0/microsoft.codeanalysis.csharp.3.8.0.nupkg'.
The list goes on. All of them point the same error about access to /Users/appveyor/.local/share/NuGet
being denied. While the build succeed, it seems like a problem waiting to get worse eventually and failing future builds (besides adding lots of false negative noise at the moment).
The full log of the build can be found at:
https://ci.appveyor.com/project/raboof/morelinq/builds/37011643/job...
After much searching, I haven't found anyone complaining about a similar issue, but that just probably just my search skills failing me. Is this something specific to .NET 5 SDK or perhaps how the image is setup with a preview? Do you know why the permission errors may be occurring?
Thanks!
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 27 Dec, 2020 05:53 PM
Thanks for letting know! Definitely, it looks like an issue.
We are currently working on macOS image update and the build looks OK on it: https://ci.appveyor.com/project/FeodorFitsner/morelinq
Will be rolling out the update today.
Support Staff 2 Posted by Feodor Fitsner on 27 Dec, 2020 06:35 PM
Image has been updated. Your build should be good now.
3 Posted by azizatif+appvey... on 30 Dec, 2020 06:46 PM
Feodor,
You are tremendous and thanks for such a quick turnaround! It works like a charm:
https://ci.appveyor.com/project/raboof/morelinq/build/job/f1f0t92m7...
Wish you all the best for 2021!