SourceLink build errors when using a "limited refs" clone
Open
enhancement
- Dominant language
- C#
- Stars
- 1.4k
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
When cloning an ADO repo with limited refs, i.e. adding "optimized/" to an ADO repo path (https://dev.azure.com/account/project/optimized/_git/repo), SourceLink fails to validate the repository URL when building.
> The value of SourceRoot.RepositoryUrl with identity 'C:\git\repo\' is invalid: 'https://dev.azure.com/account/project/optimized/_git/repo' C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.SourceLink.AzureRepos.Git\build\Microsoft.SourceLink.AzureRepos.Git.targets 28
Cloning the same repo normally (https://dev.azure.com/account/project/_git/repo) works perfectly fine.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.