Repository navigation
Makefile: resolve vp from the repo - #36671
Conversation
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="Makefile" line_range="72" />
<code_context>
openapi::
- vp run openapi
+ $(VP) run openapi
# update the embedded IEEE vendor registry, the registry rejects the Go http client
</code_context>
<issue_to_address>
**Some tasks lose install guidance**
When neither `node_modules/.bin/vp` nor a global `vp` is available, `openapi`, `lint-ui`, `license-ui`, and `test-ui` invoke `$(VP)` without depending on `check-vp`, so the missing-tool case produces a shell command-not-found error instead of the new `npm ci` guidance.
Add `check-vp` as a prerequisite to every Make target that invokes `$(VP)`.
Also at `Makefile:93`, `Makefile:108`, `Makefile:111`.
</issue_to_address>vp is a devDependency, so npm ci is all a fresh clone needs, yet the ui recipes called bare vp and check-vp answered a missing binary by pointing at the global install page. Resolve it once (node_modules/.bin/vp first, global fallback), use it in every recipe, and give every target that needs it the check-vp prerequisite so the guidance is reached instead of a plain command-not-found.
07fad0f to
11bb328
Compare
|
Thanks. Resolving the repo-local I pushed a small follow-up:
Tested in a clean 🤖 Generated with Claude Code |
Co-authored-by: PeterPablo <4340267+PeterPablo@users.noreply.github.com> Co-authored-by: Michael Geers <michael@geers.tv>
|
Before the change the recipe was (German cmd.exe message: 'node_modules' is not recognized as an internal or external command.) Setup: Windows, GNU Make 4.4.1 (Chocolatey), started from Git Bash, dependencies installed via What I found: for a line without shell operators, make looks the program up as .exe, .cmd, .bat, then without extension. In Workaround: with a global Would it make sense to use backslashes for the repo-local path on Windows, or is overriding 🤖 Generated with Claude Code |
Hardening for a fresh checkout.
vpis a devDependency (package.json), sonpm ciis all a clone needs — yet everyuirecipe called barevp, andcheck-vpanswered a missing binary with "vp is not Vite+, see https://viteplus.dev/guide/#install-vp".On a fresh clone that message is simply wrong: the tool is installed, in
node_modules/.bin, wheremakedoes not look. Measured 2026-11-06 on macOS:make uifailed that way withnode_modulespresent and a validvpinside it.Change. Resolve once — prefer
node_modules/.bin/vp, fall back to a global install — and use it in every recipe.check-vpnow namesnpm cifirst, with the global install as the alternative.#AI-ASSISTED (DeepSeek V4.1 Flash)