Skip to content

Skip validating submodules sourcelinks - #7784

Merged
michellemcdaniel merged 1 commit into
dotnet:mainfrom
michellemcdaniel:sourcelinkSubmodules
Aug 25, 2021
Merged

Skip validating submodules sourcelinks#7784
michellemcdaniel merged 1 commit into
dotnet:mainfrom
michellemcdaniel:sourcelinkSubmodules

Conversation

@michellemcdaniel

Copy link
Copy Markdown
Contributor

Currently, sourcelink is broken for submodules, where it will assume that the link is actually in the current repo, rather than having info based on the actual repo the submodule came from. There is work to fix submodule links in sourcelink, but until that fix is in, we should just ignore all links are from submodules.

To double check:

Currently, sourcelink is broken for submodules, where it will assume that the link is actually in the current repo, rather than having info based on the actual repo the submodule came from. There is work to fix submodule links in sourcelink, but until that fix is in, we should just ignore all links are from submodules.
if ($Uri.AbsoluteURI -ne $null -and ($Uri.Host -match 'github' -or $Uri.Host -match 'githubusercontent')) {
if ($Link -match "submodules") {
# Skip submodule links until sourcelink properly handles submodules
$Status = 200

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add the link to that issue here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants