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.
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
Improve pruned package data loading and handling #46898
base: main
Are you sure you want to change the base?
Improve pruned package data loading and handling #46898
Changes from all commits
621b0e1
e28a32a
cc00bc5
4a74dd0
3a8dcf6
e468db1
c59c18d
a84537a
64cdcba
7092eff
63af8e4
cdfd3f1
e4f3244
9dfd18f
75252a6
fbce075
65f9792
847eb43
324a690
4432196
ac0bf12
0d94ae8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This worries me. I submitted various PRs in the last month that removed these in-built restores. That has multiple downsides:
build.cmd/sh -restore
. "Air plane mode"We hit that same limitation in SBRP (https://github.com/dotnet/source-build-reference-packages/blob/232bcf31aad21949f80d6706720540b85e43fff3/src/packageSourceGenerator/PackageSourceGenerator.proj#L98C9-L104) and decided to introduce an inline task that can run before restore.
Now that I see this additional use-case, I would prefer if we move the
CollatePackageDownloads
task into the Arcade SDK which makes it available before project restore and solves this recurring problem for our own repositories (SBRP, SDK and potentially others).FWIW I'm not sure why NuGet requires customers to collate the items in the first place. Why can't NuGet parse such items:
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.
It's not just the collating, there's also the
GeneratePackagePruneDataDownloads
task.It would be nice if we can find a good pattern for running custom tasks that help determine what needs to be restored.
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.
Right. Looking at the
GeneratePackagePruneDataDownloads
task, I don't think that needs to be a build task at all. It should be able to express what the task is doing in pure msbuild syntax with even less code with item batching.Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.