SourceLink generating incorrect URLs when configured with GitHub Enterprise URL
- Dominant language
- C#
- Stars
- 1.4k
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
I have a repository hosted on an internal GitHub Enterprise server. I've configured a .NET 5 solution to use Source Link by referencing the `Microsoft.SourceLink.GitHub` package version `1.0.0`. I've also manually configured all the properties required for reproducible builds (I am not using `DotNet.ReproducibleBuilds`). The `` property is set to `https://internal.ghe/org/project.git` (redacted).
According to NuGet Package Manager, my package was generated properly:

However, the URLs to each source file that are stored within my library's PDB cause a 404 when I try to navigate to them:

I am not sure what the correct URL should be, nor what the GUID in the URL represents. However, when I go to a file in the GHE UI and click the Raw button, the domain changes to `raw.internal.ghe`. I suspect the URL generation algorithm SourceLink uses needs to be tweaked.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.