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

Add --check-only, for staleness checking. #346

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

quasicomputational
Copy link
Contributor

With this option, hpack will not generate the .cabal file, but will
return with a non-zero status if the .cabal file is missing, stale,
or manually modified.

With this option, hpack will not generate the `.cabal` file, but will
return with a non-zero status if the `.cabal` file is missing, stale,
or manually modified.
@quasicomputational
Copy link
Contributor Author

Ping?

Base automatically changed from master to main January 19, 2021 21:43
@sol
Copy link
Owner

sol commented Apr 24, 2022

@quasicomputational sorry for never getting back at this. This was at a time when I was struggling with RSI badly. That's the reason. However, I think we want something like this. Do you want to pick it up again? If not, I'll look into it.

@sol
Copy link
Owner

sol commented Apr 24, 2022

I haven't looked at the code, but from a users perspective what I would want to have is something that gives me a non-negative exit code if .cabal is stale. Maybe have --check or --dry-run print a status, but when combined with --silent (should that be --quiet actually?), have it indicate the status by its exit code.

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