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

Fix OCIStore inconsistent state after AddReference #215

Merged
merged 2 commits into from
Feb 4, 2021

Conversation

distorhead
Copy link
Contributor

Update descriptor in the nameMap as well as in index.Manifests.

nameMap used in the ListReferences operation and should return actual descriptor.

Update descriptor in the nameMap as well as in index.Manifests.

nameMap used in the ListReferences operation and should return actual descriptor.
distorhead added a commit to werf/werf that referenced this pull request Jan 28, 2021
distorhead added a commit to werf/werf that referenced this pull request Jan 28, 2021
@jdolitsky
Copy link
Contributor

thank you. Is there any way to add a test for the inconsistent state to prevent in the future?

@distorhead
Copy link
Contributor Author

Sure, I will add unit test for this case ASAP.

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.

2 participants