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

Use buf ls-modules for parsing config #40

Merged
merged 8 commits into from
Jul 3, 2024
Merged

Use buf ls-modules for parsing config #40

merged 8 commits into from
Jul 3, 2024

Conversation

emcfarlane
Copy link
Collaborator

@emcfarlane emcfarlane commented Jun 26, 2024

Update the module name parsing to use buf ls-modules now we have buf at v1.34.0 as a requirement. This also fixes an issue for root named modules, which missed a call to parseModules causing the module to fail. Added a test to cover the root name case.

See bufbuild/buf#3081

@emcfarlane emcfarlane requested a review from doriable June 26, 2024 20:22
Base automatically changed from ed/testRepo to main June 26, 2024 20:27

This comment has been minimized.

Copy link
Member

@doriable doriable left a comment

Choose a reason for hiding this comment

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

Looks good, left a super tiny nit, up to you to address, feel free to merge off this stamp either way!

Comment on lines +35 to +38
const stdout = output.stdout.trim();
if (stdout === "") {
return [];
}
Copy link
Member

Choose a reason for hiding this comment

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

super tiny nit: can trim after the output check

@emcfarlane emcfarlane merged commit 22286d7 into main Jul 3, 2024
36 checks passed
@emcfarlane emcfarlane deleted the ed/fixNameParse branch July 3, 2024 18:01
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