Fix hud debug dockerfile.hud error - #279
Conversation
The `hud debug .` command was failing when a directory had `Dockerfile.hud` instead of `Dockerfile`. This fix: - Adds `find_dockerfile()` function that prefers `Dockerfile.hud` over `Dockerfile` - Updates `is_environment_directory()` to recognize both Dockerfile variants - Updates `build_environment()` to use the `-f` flag when using `Dockerfile.hud` - Adds comprehensive tests for the new behavior Fixes HUD-592 Co-authored-by: ryantan <ryantan@hud.so>
|
Cursor Agent can help with this pull request. Just |
3877e81 to
fd77c7f
Compare
fd77c7f to
1f2b32f
Compare
|
HUD Bugbot review: Summary: Prefer Findings:
|
|
HUD Bugbot review: Summary: Updates debug/environment utilities to prefer Findings:
|
|
We have a helper in hud.cli.build that does the exact same: |
Fix
hud debug .to correctly identify and useDockerfile.hudinstead of onlyDockerfile.This resolves the issue where the
hud debugcommand failed because it was hardcoded to look forDockerfile, even whenDockerfile.hud(the preferred HUD-specific Dockerfile) was present. The changes update the environment detection and build logic to prioritizeDockerfile.hudand fall back toDockerfile.Linear Issue: HUD-592
Note
Prioritizes HUD-specific Dockerfiles and improves directory handling for debug/build flows.
debugdetects directory mode by findingDockerfile.hudorDockerfileviafind_dockerfileand no longer requirespyproject.tomlbuild_environmentnow usesfind_dockerfileand passes-fwhen using non-standardDockerfile.hud; logs which Dockerfile is usedfind_dockerfileutility;is_environment_directoryupdated to acceptDockerfile.hudas validfind_dockerfile,is_environment_directorywithDockerfile.hud, andhud debug .working with onlyDockerfile.hudWritten by Cursor Bugbot for commit 1f2b32f. This will update automatically on new commits. Configure here.