-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Fix error message in CodeCheck file #50375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
eng/scripts/CodeCheck.ps1
Outdated
@@ -263,7 +263,9 @@ try { | |||
|
|||
if ($changedAPIBaselines.count -gt 0) { | |||
LogError ("Detected modification to baseline API files. PublicAPI.Shipped.txt files should only " + | |||
"be updated after a major release. See /docs/APIBaselines.md for more information.") | |||
"be updated after a major release, and PublicAPI.Unshipped.txt files should not " + | |||
"be updated in release branches. If this is a preview or rc branch and you've updated a PublicAPI.Unshipped.txt " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script exempts preview branches but not rc's.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
@@ -253,7 +253,7 @@ try { | |||
} | |||
} | |||
# Check for changes in Unshipped in servicing branches | |||
if ($targetBranch -like 'release*' -and $targetBranch -notlike '*preview*' -and $file -like '*PublicAPI.Unshipped.txt') { | |||
if ($targetBranch -like 'release*' -and $targetBranch -notlike '*preview*' -and $targetBranch -notlike '*rc1*' -and $targetBranch -notlike '*rc2*' -and $file -like '*PublicAPI.Unshipped.txt') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this instead of *rc*
to decrease the odds of an accidental hit
This has been causing confusion lately. This PR improves the (previously incomplete) error message in the CodeCheck.ps1 script for PublicApi file changes.