Skip to content

driver: fix vfmt of the module cache condition - #28953

Merged
medvednikov merged 1 commit into
masterfrom
fix-driver-vfmt
Sep 25, 2026
Merged

medvednikov merged 1 commit into
masterfrom
fix-driver-vfmt

Conversation

@medvednikov

Copy link
Copy Markdown
Member

Fixes the v fmt -verify failure in the clang-macos (macos-14/15/26) jobs on master:
https://github.com/vlang/v/actions/runs/36102137480/job/107966700948

vlib/v/driver/driver.v is not vfmt'ed

d36d94a put a comment in the middle of the cache_candidate_enabled && chain. That left a trailing &&, which vfmt rewrites as && (with a trailing space).

This PR moves the comment above the declaration and keeps the leading-&& style used by the rest of the chain. The condition is unchanged.

Verified locally:

  • ./v fmt -inprocess -verify vlib/v/driver/driver.v passes
  • ./v fmt vlib/v/driver/driver.v output matches the file exactly
  • ./v self builds

d36d94a put a comment in the middle of the `cache_candidate_enabled`
`&&` chain, leaving a trailing `&&` that vfmt rewrites as `&& `
(trailing space). That fails `v fmt -verify` in the macOS CI jobs.

Move the comment above the declaration and keep the leading-`&&` style
used by the rest of the chain. The condition is unchanged.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T09:43:42.641627Z fd254dd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@medvednikov
medvednikov merged commit 2c65b09 into master Sep 25, 2026
32 of 108 checks passed
@JalonSolov
JalonSolov deleted the fix-driver-vfmt branch September 25, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant