Skip to content

Commit

Permalink
Skip getting module properties for sdk/samples/* (Azure#21727)
Browse files Browse the repository at this point in the history
  • Loading branch information
chlowell authored Oct 10, 2023
1 parent 96b7c35 commit 3012264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function Get-GoModuleProperties($goModPath)
$goModPath = $goModPath -replace "\\", "/"
# We should keep this regex in sync with what is in the azure-sdk repo at https://github.com/Azure/azure-sdk/blob/main/eng/scripts/Query-Azure-Packages.ps1#L238
# The serviceName named capture group is unused but used in azure-sdk, so it's kept here for parity
if (!$goModPath.Contains("testdata") -and $goModPath -match "(?<modPath>(sdk|profile)/(?<serviceDir>(.*?(?<serviceName>[^/]+)/)?(?<modName>[^/]+$)))")
if (!$goModPath.Contains("testdata") -and !$goModPath.Contains("sdk/samples") -and $goModPath -match "(?<modPath>(sdk|profile)/(?<serviceDir>(.*?(?<serviceName>[^/]+)/)?(?<modName>[^/]+$)))")
{
$modPath = $matches["modPath"]
$modName = $matches["modName"] # We may need to start reading this from the go.mod file if the path and mod config start to differ
Expand Down

0 comments on commit 3012264

Please sign in to comment.