dotnet / sourcelink

Source Link enables a great source debugging experience for your users, by adding source control metadata to your built assets
MIT License
1.25k stars 122 forks source link

Access Denied #639

Open nsaud-skysync opened 4 years ago

nsaud-skysync commented 4 years ago

I'm getting a bunch of access denied errors from Source Link in Ubuntu running in TeamCity.

/home/ubuntu/.nuget/packages/microsoft.build.tasks.git/1.0.0/build/Microsoft.Build.Tasks.Git.targets(24,5): warning : Access to the path '/opt/teamcity-agent/work/refs/heads/skip-build-system/Deployment/Installer/submodules/pgsql-redist/.git' is denied. The source code won't be available via Source Link. [/opt/teamcity-agent/work/refs/heads/skip-build-system/Net/src/AcmeArchitects.Net.Http.Fiddler/AcmeArchitects.Net.Http.Fiddler.csproj]

I've tried chmod and chown on the /opt/teamcity-agent directory with no luck. Anyone run into this?

binick commented 4 years ago

Hi @nsaud-skysync, I have incurred in the same problem, to fix that I had remove completely submodule from repo and re-add them.

This documentation paragraph Minimal git repository metadata has helped me to resolve this issue.