-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Ban assembly versions with wildcards in deterministic builds #5398
Conversation
Hi @TyOverby, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! TTYL, DNFBOT; |
@@ -2073,7 +2073,8 @@ private void DecodeWellKnownAttribute(ref DecodeWellKnownAttributeArguments<Attr | |||
{ | |||
string verString = (string)attribute.CommonConstructorArguments[0].Value; | |||
Version version; | |||
if (!VersionHelper.TryParseAssemblyVersion(verString, allowWildcard: true, version: out version)) | |||
bool deterministic = _compilation.Feature("deterministic")?.Equals("true", StringComparison.OrdinalIgnoreCase) ?? false; |
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.
@gafter do we have a standard way of checking for deterministic compilation that we could reuse here?
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.
compilation.IsEmitDeterministic
exists. Don't see how that one slipped by me.
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.
Fixed in 821de3c
👍 |
@TyOverby, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
retest mac please |
test mac please |
2 similar comments
test mac please |
test mac please |
Ban assembly versions with wildcards in deterministic builds
Closes #4578