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: recover from panic in compose library parse function #1197

Merged

Conversation

HarikrishnanBalagopal
Copy link
Contributor

No description provided.

Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
Copy link

Thanks for making a pull request! 😃
One of the maintainers will review and advise on the next steps.

@github-actions github-actions bot added the fix label Oct 18, 2024
@HarikrishnanBalagopal HarikrishnanBalagopal linked an issue Oct 18, 2024 that may be closed by this pull request
err = fmt.Errorf("panicky_parseV2 failed: %q", r)
}
}()
result, err = panicky_parseV2(path, interpolate)
Copy link
Member

Choose a reason for hiding this comment

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

isn't it sufficient to wrap only err = proj.Parse() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
@HarikrishnanBalagopal HarikrishnanBalagopal merged commit 18e6d62 into konveyor:main Oct 18, 2024
4 of 5 checks passed
@HarikrishnanBalagopal HarikrishnanBalagopal deleted the fix/composepanic branch October 18, 2024 13:41
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.

bug: panic when parsing compose file in certain cases
2 participants