-
Notifications
You must be signed in to change notification settings - Fork 440
Eliminate remaining source-build poisons #16631
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
75246fa
Build razor after runtime and aspnetcore
NikolaMilosavljevic cc1ff51
Fail the build on any poisoned files
NikolaMilosavljevic 7702fac
Patch for razor package dependency
NikolaMilosavljevic 7efbfbc
Merge branch 'main' into poison0
NikolaMilosavljevic 73495fe
Remove PoisonTests
NikolaMilosavljevic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/SourceBuild/patches/razor/0001-Add-System.Collections.Immutable-package-dependency.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
| From: Nikola Milosavljevic <[email protected]> | ||
| Date: Thu, 8 Jun 2023 18:39:26 +0000 | ||
| Subject: [PATCH] Add System.Collections.Immutable package dependency | ||
|
|
||
| Backport: https://github.com/dotnet/razor/pull/8817 | ||
| --- | ||
| eng/Version.Details.xml | 10 +++++++--- | ||
| 1 file changed, 7 insertions(+), 3 deletions(-) | ||
|
|
||
| diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml | ||
| index 3d75f97f3..c52b0a554 100644 | ||
| --- a/eng/Version.Details.xml | ||
| +++ b/eng/Version.Details.xml | ||
| @@ -105,12 +105,16 @@ | ||
| <Sha>9e7fbcab4e5275f63c0cd37553ba426de9194309</Sha> | ||
| <SourceBuild RepoName="xliff-tasks" ManagedOnly="true" /> | ||
| </Dependency> | ||
| - <!-- 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 razor. Without this entry an SBRP version of the | ||
| - dependency would be bundled together with the produced package, causing issues for the consumer. --> | ||
| + <!-- Necessary for source-build. This allows Microsoft.Extensions.ObjectPool and System.Collections.Immutable packages | ||
| + to be retrieved from live source-build and their content consumed by packages produced by razor. | ||
| + Without these entries, due to PVP flow work, SBRP packages would be consumed causing runtime issue. --> | ||
| <Dependency Name="Microsoft.Extensions.ObjectPool" Version="6.0.0"> | ||
| <Uri>https://github.com/dotnet/aspnetcore</Uri> | ||
| <Sha>ae1a6cbe225b99c0bf38b7e31bf60cb653b73a52</Sha> | ||
| </Dependency> | ||
| + <Dependency Name="System.Collections.Immutable" Version="6.0.0"> | ||
| + <Uri>https://github.com/dotnet/runtime</Uri> | ||
| + <Sha>4822e3c3aa77eb82b2fb33c9321f923cf11ddde6</Sha> | ||
| + </Dependency> | ||
| </ToolsetDependencies> | ||
| </Dependencies> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
With the introduction of this, it seems like we can remove the PoisonTests and the associated baseline file.
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.
Great idea - will update the PR after local verification.
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 with 73495fe