dotnet / dotnet/sourcelink

No luck getting Source Link to work with Cloud hosted Bitbucket

Open
#878 15 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
1.4k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

Our code is stored on Bitbucket's hosted platform. We're attempting to debug private NuGet packages that we are the author of.

For the package that I'm testing, I've set the following in its .csproj:

```

true
true
True
true
snupkg



all
runtime; build; native; contentfiles; analyzers; buildtransitive


```

On the consuming end, I've ensured that symbols are loading as well unchecked _Enable Just My Code_ and checked all options for _Enable Source Link support_ and _Enable source server support_.

I'm attempting to access the code for a call in the callstack that lives in the nuget package. When I do so, it's getting a 404 when it attempts to access the file using http://api.bitbucket.org. When I try to access the file outside of the API via https://bitbucket.org, the path that it's using works.

It would appear to be some sort of authentication issue, but I'm not certain how to troubleshoot that, as I don't know which credentials are being passed into the API, nor am I ever prompted for credentials. We are using Bitbucket with 2FA and SSH, as is required to utilize their CI pipelines anymore.

Can you provide guidance on where to go from here?

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.