-
Notifications
You must be signed in to change notification settings - Fork 1.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
RID-based restore should not be necessary for PSCD apps #34198
Comments
I believe the problem is the following. The app is not RID specific by default. But SelfContained infers a RID with the change we made last year. But If we make publish self contained give a rid when you restore, then it would break build in the same fashion. I think this ultimately comes back to this: to fix this we would need to make all apps rid specific by default. |
Let's do a thought exercise ... Today, |
We could absolutely make |
This is not the primary scenario to be concerned about. For example, native AOT templates come like this. Also, folks typically apply this property and then all the folks working on that project expect we'll deliver the optimal behavior from that point on.
Let's do a though exercise using this example Dockerfile. It's not self-contained, but let's pretend it was. Imagine you are regularly updating Important UX question:
|
Do you mean if it was PublishSelfContained and the restore did not have UCR? If the restore on line 8 deletes any potential cached runtime pack downloaded by line 12, yeah, that is pretty bad... I think UCR would fix the problem on restore though. It is certainly additional complexity that kind of requires you to know how the SDK works, though. |
Right. No It is the opposite. Here is a workflow:
When you rebuild the container image, Docker is able to use an incremental build system, relying on a cache. Each instruction in the
That has implications on when the runtime pack needs to be downloaded. If restore could download the runtime pack, then it would only be redownloaded when the My meta point is that forcing folks to specify a RID for restore with an app type that is RID specific is bad.
It is the opposite. Users should not need to specify a RID or think about any of this. The SDK should build features to work well with popular systems. |
Creating a new issue. |
This is my experience.
I assume this would be fixed if RID-specific was the default. It's very odd that apps with
PublishSelfContained
are portable forbuild
.@agocke @nagilson
The text was updated successfully, but these errors were encountered: