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

ormolu.sh: make queries for options more robust #1009

Merged
merged 3 commits into from
Mar 10, 2020

Conversation

mheinzel
Copy link
Contributor

@mheinzel mheinzel commented Mar 9, 2020

By using yq we don't rely on formatting and ordering of the package.yaml and package-default.yaml files anymore.

I needed these changes to make the script work in saml-web-sso, now I'm just backporting them.

mheinzel added 2 commits March 9, 2020 17:04
They are still ugly and we should try to find a better solution.
Copy link
Contributor

@fisx fisx left a comment

Choose a reason for hiding this comment

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

ah, i just realized that yq /= jq :) i don't have the former installed. can you add a test that emits a nice error message with a url if yq is not installed? currently the script keeps running, but not very smoothly.

otherwise i still think this is nice enough to ask developers to install it. what do others think?

@mheinzel mheinzel force-pushed the mheinzel/nicer-ormolu-queries branch from a918257 to 36fd5dc Compare March 10, 2020 10:12
@mheinzel mheinzel requested a review from fisx March 10, 2020 10:32
@mheinzel mheinzel merged commit 07eaf10 into develop Mar 10, 2020
@mheinzel mheinzel deleted the mheinzel/nicer-ormolu-queries branch March 10, 2020 12:16
@fisx fisx mentioned this pull request Mar 10, 2020
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