-
-
Notifications
You must be signed in to change notification settings - Fork 476
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
🐛 Running biome --version
exits with failure
#312
Comments
To keep in mind: When this is fixed, we should update the test block of biome's homebrew formula to check for exit code |
I tried to debug it, it only happens with root command when I pass options like ( biome/crates/biome_cli/src/main.rs Line 31 in 59acbfd
|
@nhedger should we file an issue upstream? |
Turns out we might be doing something wrong. I'll explain in details later today. |
This will feel counter-intuitive, but I think the problem lies in the following code. biome/crates/biome_cli/src/main.rs Lines 32 to 59 in 55f740c
Specifically, the part where we're handling the failures. biome/crates/biome_cli/src/main.rs Lines 49 to 58 in 55f740c
At line 52, we return According to the documentation of that enum, the
I believe returning |
Good find, that should be easy to fix then! |
Yep, I'll take care of it later today. |
@nhedger But why does only |
|
Thanks for clarifying @pacak, much appreciated. |
Environment information
What happened?
biome --version
echo $?
1
(failure)Expected result
Running
biome --version
should exit with code0
.Code of Conduct
The text was updated successfully, but these errors were encountered: