Skip to content

build: make lint install dependencies first like the other targets - #839

Merged
STRML merged 1 commit into
masterfrom
build/make-lint-prereq
Oct 31, 2026
Merged

STRML merged 1 commit into
masterfrom
build/make-lint-prereq

Conversation

@STRML

@STRML STRML commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

make lint on a fresh checkout fails: it runs $(BIN)/eslint and $(BIN)/tsc with no $(BIN) prerequisite, so nothing installs node_modules first, and under make -j a release-* target can start lint before the install finishes. Found by CodeRabbit on #837 (it predates that PR).

-lint:
+lint: $(BIN)

lint was the only target in the Makefile that used $(BIN) tools without the prerequisite. make -n BIN=<missing path> lint now prints yarn install before eslint.

Summary by CodeRabbit

  • Chores
    • Lint checks now prepare the required build directory when it is missing, helping them run reliably in a clean environment.

CodeRabbit on #837: lint ran $(BIN)/eslint and $(BIN)/tsc with no $(BIN) prerequisite, so make lint on a fresh checkout failed, and under make -j a release target could start lint before the install finished. Swept the Makefile: lint was the only target using $(BIN) tools without the prerequisite. make -n with BIN on a missing path now runs yarn install first.
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 70b77e44-bf28-4b4e-b2c3-5c5413bc38cf
Commits

Reviewing files that changed from the base of the PR and between 7639cd1 and 85805b1.

Files selected for processing: 1
  • Makefile

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.

Walkthrough

The Makefile adds $(BIN) as a prerequisite of lint. Make runs the binary-directory target before the lint commands when needed.

Changes: Lint setup

Layer / File(s) Summary
Lint prerequisite
Makefile
The lint target now depends on $(BIN).

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 85805

The change addresses lint setup ordering, with no actionable merge-blocking risk identified. Merge after normal checks pass.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: making the lint target install dependencies before running lint commands.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@STRML
STRML merged commit f787bc3 into master Oct 31, 2026
6 checks passed
@STRML
STRML deleted the build/make-lint-prereq branch October 31, 2026 21:54
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