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

Check if mergedImage is nil #1135

Merged
merged 1 commit into from
May 17, 2022
Merged

Check if mergedImage is nil #1135

merged 1 commit into from
May 17, 2022

Conversation

bufdev
Copy link
Member

@bufdev bufdev commented May 17, 2022

Should fix #1134.

This needs review as I'm not sure on the code.

@bufdev bufdev requested a review from doriable May 17, 2022 16:43
@bufdev bufdev mentioned this pull request May 17, 2022
@doriable
Copy link
Member

Yeah, this got a little bit gnarly because the expected behaviour for a single proto file ref with export is that it should only be returning the file and its dependencies. I can review this code after this fix is merged.

@bufdev
Copy link
Member Author

bufdev commented May 17, 2022

Is this the correct fix? Ie we should continue if mergedImage == nil, not mergedImage != nil?

@doriable
Copy link
Member

Is this the correct fix? Ie we should continue if mergedImage == nil, not mergedImage != nil?

We would continue if mergedImage == nil or if there is an image but the path doesn't exist in said image.

@bufdev bufdev merged commit fedf729 into main May 17, 2022
@bufdev bufdev deleted the merged-image-buf branch May 17, 2022 18:17
Monirul1 pushed a commit to Monirul1/buf that referenced this pull request Apr 30, 2023
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.

segfault in buf export
2 participants