Repository navigation
fix fmt version default - #285
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #285 +/- ##
==========================================
- Coverage 79.65% 79.60% -0.05%
==========================================
Files 65 65
Lines 4192 4192
==========================================
- Hits 3339 3337 -2
- Misses 853 855 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
drmorr0
left a comment
There was a problem hiding this comment.
lgtm - can you make sure the commit message is in conventional commit format? this is probably chore:
currently precommit fails with an uninformative error if you dont have RUST_NIGHTLY_VERSION set, because scripts/fmt needs it. I added a default here so it will tell you to install it, I also added direnv to gitignore because im using that to inject env variables for my neovim formatter,
8e78605 to
ebe1329
Compare
chore not CI? |
I mean I feel like this is more about "fixing your local system so it matches what happens in CI" which feels more "chore-ish" to me, but either one works. |
|
yes agreed, I do change the default for the fmt script which could technecally affect ci but I agree, especially because if it was going to affect it it would already be failing |
Description and Rationale
currently precommit fails with an uninformative error if you dont have RUST_NIGHTLY_VERSION set, because scripts/fmt needs it. I added a default here so it will tell you to install it, I also added direnv to gitignore because im using that to inject env variables for my neovim formatter,
How
use bash default :- to add variable, the other option here is to edit the command so that when the variable is empty it adds +nightly instead of +nightly- as it does now, that would default to the users nightly for formatting which feels a bit worse then keeping a standard, idk
Test Steps
I used it
Other Notes
Added .direnv
and set precommit yaml to default to the system node version, I was having some issues with it complaining with an unset version. but im happy to remove that if need be