Skip to content

register jsonnetfmt using buildifier as a template #206

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

Merged
merged 3 commits into from
Dec 3, 2022
Merged

register jsonnetfmt using buildifier as a template #206

merged 3 commits into from
Dec 3, 2022

Conversation

nakulj
Copy link
Contributor

@nakulj nakulj commented Dec 1, 2022

Fixes #156

Copy link
Contributor

@dbarnett dbarnett left a comment

Choose a reason for hiding this comment

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

Two questions, looks good to me otherwise.

@nakulj nakulj requested a review from dbarnett December 3, 2022 01:31
Copy link
Contributor

@dbarnett dbarnett left a comment

Choose a reason for hiding this comment

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

Thanks! Merging.

@dbarnett dbarnett merged commit 6548022 into google:master Dec 3, 2022
@yegle
Copy link

yegle commented Jan 8, 2023

Hmm the jsonnetfmt (both C++ version and Go version) does not have a -path flag. Was this a mistake?

@dbarnett
Copy link
Contributor

Yeah, probably copypasta from some other formatter file? That means the formatter always fails if you try to format a buffer with an associated filename?

Easy enough to remove if so.

@dbarnett
Copy link
Contributor

I filed #231 for that and have a fix I'm about to submit for it.

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.

Add a formatter for jsonnet
3 participants