Skip to content
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

🐛 --staged regression in v1.8.0 #3069

Closed
1 task done
KittyGiraudel opened this issue Jun 5, 2024 · 4 comments · Fixed by #3074 or abdulrahman305/continue#2 · May be fixed by ramzimalhas/popclipweb#3, Ramyromel/mesc#2 or Ramyromel/mesc#6
Closed
1 task done

🐛 --staged regression in v1.8.0 #3069

KittyGiraudel opened this issue Jun 5, 2024 · 4 comments · Fixed by #3074 or abdulrahman305/continue#2 · May be fixed by ramzimalhas/popclipweb#3, Ramyromel/mesc#2 or Ramyromel/mesc#6
Assignees
Labels
A-CLI Area: CLI S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@KittyGiraudel
Copy link

KittyGiraudel commented Jun 5, 2024

Environment information

CLI:
  Version:                      1.8.0
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.9.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/10.1.0"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 false

Workspace:
  Open Documents:               0

What happened?

As of v1.8.0, the --staged flag doesn’t seem to work properly anymore. In v1.7.3, it would only run on staged files. But in v1.8.0, we get reports in files that are not staged (not even touched, for that matter).

I suspect the error to be related to this merge-request, since it updated which files would end up being considered. I may be wrong.

Expected result

Only the files that are staged by git (or whatever VCS is supported) should be linted when running Biome with the --staged flag.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@ematipico ematipico added A-CLI Area: CLI S-Bug-confirmed Status: report has been confirmed as a valid bug labels Jun 5, 2024
@ematipico
Copy link
Member

Thank you for reporting it!

@unvalley are you able to take a look?

@KittyGiraudel
Copy link
Author

Amazing to see it fixed already!

Do you know already when you‘ll publish this fix? Just so I know whether we should revert to v1.7.3 or we can wait for the fix to land. :)

@Conaclos
Copy link
Member

Conaclos commented Jun 6, 2024

Do you know already when you‘ll publish this fix? Just so I know whether we should revert to v1.7.3 or we can wait for the fix to land. :)

We usually release a patch in a weekly window. You can expect the patch to be released by next Tuesday.

@basaran
Copy link

basaran commented Jun 28, 2024

Everything is good, I was on 1.8.0 and noticed the same regression. Updating to 1.8.3, things are nice and stable now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment