mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #62] [MERGED] fix(cli): validate Dockerfile before creating template #148
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/62
Author: @ShiroKSH
Created: 7/29/2026
Status: ✅ Merged
Merged: 7/29/2026
Merged by: @yingdi-shan
Base:
main← Head:fix/aenv-build-preflight📝 Commits (1)
bae4d3ffix(cli): validate Dockerfile before creating template📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
crates/aenv/src/commands/build.rs(+1 -1)📄 Description
What
Validate and translate the Dockerfile before creating the remote template record.
Why
aenv buildcurrently sendsPOST /v3/templatesbefore checking whether the Dockerfile contains unsupported instructions. A later validation error leaves aWaitingtemplate/build behind and can retain the requested alias even though no build was started.Related issue
N/A — focused CLI bug fix.
Scope and non-goals
Only the preflight order changes. Supported Dockerfiles keep the same request payloads and build flow.
Design and behavior changes
Build the local Dockerfile plan before the first remote mutation. Invalid Dockerfiles now fail without creating server-side state.
Compatibility and operations
Validation
cargo fmt --all -- --checkcargo clippy -p aenv --all-targets -- -D warningscargo test -p aenv commands::build::testsCommands and results:
Risks and reviewer notes
Low risk: the change only moves an existing fallible, local validation step before template creation.
Checklist
COPY/ADDpaths.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.