-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
🐛 --changed
doesn't work when run on the base branch even if --no-errors-on-unmatched
is enabled
#1774
Comments
Can you share a small repository with so we can replicate the issue? |
https://github.com/antogyn/biome-issue-1774 Same issue with I think you can simply run this command on any project with git integration enabled to trigger the error:
Edit: in case it's useful
|
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 |
Yeah, that seems about right. Do you want to send a PR? |
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? 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
The text was updated successfully, but these errors were encountered: