Repository navigation
Makefile: guard make attest against a missing stellar CLI (#457) - #513
Conversation
) The first command a new operator runs shelled out to stellar mid-recipe, so a missing binary surfaced as a bare "command not found" with no hint of what to install. A phony check-stellar prerequisite now fails fast on stderr, naming the tool and pointing at the repo's documented install docs, before any other work runs. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@webdevayo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
MergeKeeper review Scope: in scope for linked issue This PR adds a Reviewed commit: |
|
MergeKeeper merge status Status: blocked Reason: One or more required CI checks failed. Failing checks:
Next steps:
|
|
Thanks. If you see a case the current check misses, please rebase onto |
|
Needs changes The PR adds a helpful Blocking
|
There was a problem hiding this comment.
Needs changes
The PR adds a helpful check-stellar rule to the Makefile, but it fails to wire it up as a prerequisite to the attest target so the guard never actually executes.
Blocking
Makefile:176
Problem: The check-stellar rule is defined in the Makefile but is not added as a prerequisite to the attest target, meaning running make attest will not trigger the check.
Suggested fix: Locate the attest target in the Makefile and add check-stellar as a prerequisite (e.g., attest: check-stellar ...).
Prompt for an AI coding agent
In Makefile, add `check-stellar` as a prerequisite to the `attest` target so that running `make attest` executes the guard check before proceeding.
Reviewed commit: 2e256666e51bc0dca387da10a2ba444ce924df12.
|
@samjay8 All resolved please merge |
Closes #457
What
make attestnow checks for thestellarCLI first (newcheck-stellarprerequisite) and, if it is missing, fails immediately with a message that
names the tool and links the install docs.
Before
make attestwithoutstellarfailed with a shellcommand not foundpartway through the recipe, after
go buildand the attestation parametershad already run.
After
error: the 'stellar' CLI was not found on your PATH. Install it from
https://developers.stellar.org/docs/build/smart-contracts/getting-started/setup
and re-run 'make attest'.
make: *** [Makefile:143: check-stellar] Error 1
The guard runs before
go buildand before the ASSET usage check, and themessage goes to stderr.
Testing
stellarmissing from PATH (with and without ASSET): the error above,make exits non-zero, and no later step runs.
stellaron PATH:make -n attestprints the original recipeunchanged.
Scope
Limited to the guard, per the issue's out-of-scope note.