-
Notifications
You must be signed in to change notification settings - Fork 420
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
Fix mason license source #25062
Fix mason license source #25062
Conversation
ca6cf1c
to
6693af0
Compare
b33d0a4
to
198ca5c
Compare
Signed-off-by: arezaii <[email protected]>
Signed-off-by: arezaii <[email protected]>
Signed-off-by: arezaii <[email protected]>
198ca5c
to
1d58b16
Compare
Signed-off-by: Ahmad Rezaii <[email protected]>
1d58b16
to
eeb8c69
Compare
const badSyntaxMessage = 'Arguments do not follow "mason publish [options] <registry>" syntax'; | ||
|
||
if refreshLicenses { | ||
writeln("Force updating list of valid license names from SPDX repo..."); |
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.
Would a hyphen be appropriate here? "Force-updating"? I'm not 100% sure of my grammar here (or anywhere...).
At your discretion.
tools/mason/MasonPublish.chpl
Outdated
if refreshLicenses { | ||
writeln("Force updating list of valid license names from SPDX repo..."); | ||
refreshLicenseList(true); | ||
writeln("done updating license list"); |
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.
After grepping around, it looks like we tend to use capitalization for the first word.
Signed-off-by: Ahmad Rezaii <[email protected]>
In Mason, updates the source list of valid license names to the proper spdx repository. Also adds a new option to
mason publish
,--refresh-licenses
that will force delete and make a new clone of the license repository that is stored in the.mason
folder.The feature is implemented in such a way that if it's passed, it will be the only option executed. This felt OK to me since it should be a very rarely if ever used option and it seemed like a distinct operation from the publishing actions.
Includes some testing for the refresh-licenses feature, while there, updated some tests that had malformed arguments to the corresponding
mason
sub-function, and fixed some linter warnings for unused names and indentation.TESTING:
[Summary: #Successes = 17229 | #Failures = 0 | #Futures = 926]
[reviewed by @benharsh - thanks!]