Skip to content

Handle empty CARGO overrides in Makefile#177

Draft
lodyai[bot] wants to merge 1 commit into
mainfrom
makefile-cargo-empty-override
Draft

Handle empty CARGO overrides in Makefile#177
lodyai[bot] wants to merge 1 commit into
mainfrom
makefile-cargo-empty-override

Conversation

@lodyai
Copy link
Copy Markdown

@lodyai lodyai Bot commented Apr 30, 2026

Summary

This branch keeps Makefile tool discovery working when CI exports CARGO= as
an empty value. It resolves the cargo executable separately, treats empty
CARGO as unset, and preserves non-empty caller overrides.

Review walkthrough

  • Start with Makefile to review the empty-override handling and the preserved NEXTEST wiring.

Validation

  • make -n check-fmt CARGO=: passed; dry-run commands use the resolved cargo path.
  • make all: passed; 3977 nextest tests passed, 7 skipped, and GitHub tool tests passed.
  • git diff --check: passed.

Notes

This branch is split out from the WASM registration refactor so the toolchain
resolution behaviour can be reviewed independently.

Resolve the cargo executable before target definitions and treat an
explicitly empty `CARGO` value as unset. This keeps local caller overrides
working while preventing CI environments that export `CARGO=` from building
commands with an empty executable.
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @LodyAI[bot], you have reached your weekly rate limit of 2500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 30, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 7964f2ca-e8fa-481f-86f2-12ec16143a5a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch makefile-cargo-empty-override

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added size: XS < 10 changed lines (excluding docs) risk: low Changes to docs, tests, or low-risk modules contributor: new First-time contributor labels Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor: new First-time contributor risk: low Changes to docs, tests, or low-risk modules size: XS < 10 changed lines (excluding docs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant