Skip to content
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

Pin System.Formats.Asn #10396

Merged
merged 8 commits into from
Jul 18, 2024
Merged

Pin System.Formats.Asn #10396

merged 8 commits into from
Jul 18, 2024

Conversation

JanKrivanek
Copy link
Member

Fixes https://devdiv.visualstudio.com/DevDiv/_componentGovernance/DotNet-msbuild-Trusted/alert/9977351?typeId=6797870&pipelinesTrackingFilter=0

Context

Lets pin System.Formats.Asn, till the System.Security.Cryptography.Pkcs is available and updated

Copy link
Member

@rainersigwald rainersigwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you'll also need to add one of these sections

<!-- Necessary for source-build. This allows the package to be retrieved from previously-source-built artifacts
and flow in as dependencies of the packages produced by msbuild. -->
<Dependency Name="System.Reflection.MetadataLoadContext" Version="8.0.0">
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-runtime</Uri>
<Sha>5535e31a712343a63f5d7d796cd874e563e5ac14</Sha>
</Dependency>
so sourcebuild can flow the right versions.

eng/Versions.props Outdated Show resolved Hide resolved
JanKrivanek and others added 3 commits July 18, 2024 15:06
Co-authored-by: Rainer Sigwald <raines@microsoft.com>
@JanKrivanek
Copy link
Member Author

I added the dependency via:

darc add-dependency --name "System.Formats.Asn1" --version 8.0.1 --type "product" --repo "https://dev.azure.com/dnceng/internal/_git/dotnet-runtime" --commit "bf5e279d9239bfef5bb1b8d6212f1b971c434606"

I'm bit blurry on following - and would appreciate info or documentation pointers (tagging @dotnet/source-build-internal to chime in here):

@mthalman
Copy link
Member

I added the dependency via:

darc add-dependency --name "System.Formats.Asn1" --version 8.0.1 --type "product" --repo "https://dev.azure.com/dnceng/internal/_git/dotnet-runtime" --commit "bf5e279d9239bfef5bb1b8d6212f1b971c434606"

I'm bit blurry on following - and would appreciate info or documentation pointers (tagging @dotnet/source-build-internal to chime in here):

Since you've defined the dependency using darc, it's set up perfectly. And since this dependency comes from runtime, which is built before msbuild in the VMR, this prebuilt will only occur in the msbuild repo's build, not the VMR's build. For that reason, it's acceptable to simply configure this as an allowed prebuilt rather than defining this package in SBRP.

@JanKrivanek JanKrivanek marked this pull request as ready for review July 18, 2024 14:13
@JanKrivanek JanKrivanek requested a review from a team as a code owner July 18, 2024 14:13
@JanKrivanek JanKrivanek mentioned this pull request Jul 18, 2024
18 tasks
eng/Packages.props Outdated Show resolved Hide resolved
JanKrivanek and others added 2 commits July 18, 2024 17:12
Co-authored-by: Rainer Sigwald <raines@microsoft.com>
@JanKrivanek JanKrivanek enabled auto-merge (squash) July 18, 2024 15:13
@JanKrivanek JanKrivanek merged commit fb48b92 into main Jul 18, 2024
10 checks passed
@JanKrivanek JanKrivanek deleted the proto/asn-ver branch July 18, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants