Skip to content

fix: recover from panic in compose library parse function#1197

Merged
HarikrishnanBalagopal merged 2 commits intokonveyor:mainfrom
HarikrishnanBalagopal:fix/composepanic
Oct 18, 2024
Merged

fix: recover from panic in compose library parse function#1197
HarikrishnanBalagopal merged 2 commits intokonveyor:mainfrom
HarikrishnanBalagopal:fix/composepanic

Conversation

@HarikrishnanBalagopal
Copy link
Contributor

No description provided.

Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
@github-actions
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
@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