Closed antogyn closed 8 months ago
Can you share a small repository with so we can replicate the issue?
https://github.com/antogyn/biome-issue-1774
Same issue with 1.5.3
instead of 1.5.3-nightly.24fcf19
(which I needed because of a recent fix)
I think you can simply run this command on any project with git integration enabled to trigger the error:
biome check --changed --no-errors-on-unmatched --since=head .
Edit: in case it's useful
git -v
# git version 2.39.3 (Apple Git-145)
Taking a glance at the code, it seems the error is triggered here:
https://github.com/biomejs/biome/blob/main/crates/biome_cli/src/changed.rs#L28
My suggestion would to simply drop this check, since the --no-errors-on-unmatched
flag is handled later in execute_mode
Yeah, that seems about right. Do you want to send a PR?
I'm a Rust noob but I'll give it a shot
I'm a Rust noob but I'll give it a shot
No worries! Let's start by deleting the lines and doing a draft PR. Then I will help you :)
Can you give me pointers on tests? It looks like the change doesn't break any, and I'm not sure where to start
Hey team, any update on this front? ~Is there anything we can do to help move this along?~ I'm seeing helpful commentary on antogyn's PR.
Just integrated biome into our ci/cd pipeline and running into the same issue as reported above.
You'll get the fix in the next release v1.6. If you require the fix ASAP, I can publish a nightly tomorrow
@ematipico Thank you for jumping on this issue. A nightly release would be really great, thank you!
Environment information
What happened?
defaultBranch
tomaster
git checkout master
biome check --changed --no-errors-on-unmatched --files-ignore-unknown=true .
Alternatively
biome check --changed --no-errors-on-unmatched --since=head .
It shows this error:
Expected result
It should not return an error
Code of Conduct