We're a .NET and Atlassian shop. We'd like to be able to debug our NuGet packages using Source Link. I've followed the instructions provided for getting Source Link working with a Bitbucket repo without any luck. It's unable to retrieve the files while debugging.
I suspect that it might be due to the fact that we're using 2-factor authentication, since we make use of Bitbucket Pipelines. I've reached out for assistance from the Source Link team, as well as on Stack Overflow with no luck, so I thought I'd see if anyone in the Atlassian community might be able to offer any guidance?
Many Thanks!
Mike
For folks that run into this same issue, we were able to determine that this was due to Pipelines using HTTP when pulling the source. Source Link utilizes this repository path and ends up using HTTP in what it embeds, which results in a 301 (redirect) when it later attempts to access the source code. In order to work around this, we now temporarily change the repository path to HTTPS in our pipeline prior to doing the build and then reset it back immediately afterwards.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.