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 panic when dealing with empty manifest. #274

Merged
merged 1 commit into from
May 11, 2021

Conversation

Integralist
Copy link
Collaborator

@Integralist Integralist commented May 11, 2021

Problem: when updating the manifest we were creating a new instance type of the manifest file, one that didn't have the internal output field set. This would ultimately cause a runtime panic.
Solution: we already have an instance of the manifest type, with the output set, so pass that into the relevant function to use.
Notes: the reason this panic materialised when dealing with an empty manifest is because the manifest needed to be updated to include a manifest_version field and so it's at that point that we need to use the output field for displaying information to the user.

@Integralist Integralist added the bug Something isn't working label May 11, 2021
@Integralist Integralist requested a review from kailan May 11, 2021 15:12
@Integralist Integralist merged commit 8e30373 into main May 11, 2021
@Integralist Integralist deleted the integralist/fix-panic-with-empty-manifest branch May 11, 2021 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants