You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sync eng/common directory with azure-sdk-tools for PR 7585 (#34071)
* Remove package retrieval when verify pkg version
* Modified description of PackageName parameter
---------
Co-authored-by: Ray Chen <[email protected]>
Write-Host"ServiceDir:$ServiceDirectory, no package info is found for package $PackageName at $pkgPropPath, the validation of spec location is ignored."
LogError "ServiceDir:$ServiceDirectory, Version info is not available for package $PackageName, because version '$(pkgInfo.Version)' is invalid. Please check if the version follows Azure SDK package versioning guidelines."
LogError "ServiceDir:$ServiceDirectory, Version info is not available for package $PackageName, because version '$(pkgInfo.Version)' is invalid. Please check if the version follows Azure SDK package versioning guidelines."
# Ignore the validation if the package is not GA version
207
-
if ($version.IsPrerelease) {
208
-
Write-Host"ServiceDir:$ServiceDirectory, Package $PackageName is marked with version $version, the version is a prerelease version and the validation of spec location is ignored."
209
-
exit0
210
-
}
211
-
$continueValidation=$true
212
-
}
213
-
}
214
-
if ($continueValidation-eq$false) {
215
-
Write-Host"ServiceDir:$ServiceDirectory, no package info is found for package $PackageName, the validation of spec location is ignored."
192
+
# Ignore the validation if the package is not GA version
193
+
if ($version.IsPrerelease) {
194
+
Write-Host"ServiceDir:$ServiceDirectory, Package $PackageName is marked with version $version, the version is a prerelease version and the validation of spec location is ignored."
0 commit comments