-
Notifications
You must be signed in to change notification settings - Fork 11
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
Patch: Better error reporting when a watched path does not exist #329
Patch: Better error reporting when a watched path does not exist #329
Conversation
@9999years> any feedback you would have on this PR? (so that we know if there is a chance it gets merged, and if so we'll work on reaching a final state (add a test?)). |
@Xophmeister @smelc This is awesome, sorry I didn't see it earlier! I've been heads-down working on upgrading our monolith to GHC so my notifications have been stalled. Looks good! Left a couple comments but otherwise this should be a simple fix. You might be able to write a test for it but the testing framework is a little clunky. Not required. |
Thanks, @9999years 🙏 The original issue (#312) mentions two actions items:
Would your preference be for this PR to close 312 (thus needing the second item), or is this enough as is? |
Aside, this part of the message is still really clunky and unhelpful. Don't fix it in this PR but I just want to flag this as something that still needs work / isn't user-friendly enough:
|
Anything left before merge? I see it's still marked as a draft. |
@Xophmeister> WDYT? Ready to merge in your opinion? |
@9999years> it's ready to go 🎉 |
7bc0e60
to
96dcf36
Compare
Squashed to have a nicer history. |
PR #329 failed to create a release because the release workflow ran in the context of the fork: ``` Run peter-evans/create-pull-request@v5 Error: Input 'token' not supplied. Unable to continue. Restore git configuration Error: Cannot read properties of undefined (reading 'removeAuth') ``` Change the workflow to run in `pull_request_target` to fix this, I hope. Also update `get-crate-version` to not depend on any runtime tools, only the Nix expressions. See: https://github.com/MercuryTechnologies/ghciwatch/actions/runs/12130981516/job/33822389311
PR #329 failed to create a release because the release workflow ran in the context of the fork: ``` Run peter-evans/create-pull-request@v5 Error: Input 'token' not supplied. Unable to continue. Restore git configuration Error: Cannot read properties of undefined (reading 'removeAuth') ``` Change the workflow to run in `pull_request_target` to fix this, I hope. Also update `get-crate-version` to not depend on any runtime tools, only the Nix expressions. See: https://github.com/MercuryTechnologies/ghciwatch/actions/runs/12130981516/job/33822389311
Released this in 1.0.2: https://github.com/MercuryTechnologies/ghciwatch/releases/tag/v1.0.2 Thanks again for the contribution! |
Provide a more helpful error message when a watched path does not exist. For example,
$ ghciwatch --watch does-not-exist
Before
After
Partially resolves #312
patch
,minor
, ormajor
to request a version bump when it's merged.docs/
.tests/
.