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

Force solution-asset system to fail if it can't find an asset for a checksum #67149

Merged
merged 2 commits into from
Mar 4, 2023

Conversation

CyrusNajmabadi
Copy link
Member

Fixes #47013

This code was non-sensical. We could only get to the point where we would be trying to find an asset for a checksum once all the checksums/assets were already stored in the storage-scope. So if we had taht, but then can't find an asset for a checksum later, then that indicates a very very bad invariant problem. And definitely not something we want to paper over. It's unclear how this wouldn't just crash higher layers anyways as trying to get an asset, and returning null, would just break anything expecting a normally non-null asset (the common case for everything in the workspace).

@CyrusNajmabadi CyrusNajmabadi requested a review from tmat March 2, 2023 02:09
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner March 2, 2023 02:09
Copy link
Member

@genlu genlu left a comment

Choose a reason for hiding this comment

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

:shipit:

@CyrusNajmabadi CyrusNajmabadi merged commit b4efc4f into dotnet:main Mar 4, 2023
@CyrusNajmabadi CyrusNajmabadi deleted the storageChecksums branch March 4, 2023 08:19
@ghost ghost added this to the Next milestone Mar 4, 2023
@allisonchou allisonchou modified the milestones: Next, 17.6 P3 Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SolutionAssetStorage.GetAssetAsync should never return null
3 participants