fix: support walking up parent directories to find Earthfile#638
Conversation
➖ Are we earthbuild yet?No change in "earthly" occurrences 📈 Overall Progress
Keep up the great work migrating from Earthly to Earthbuild! 🚀 💡 Tips for finding more occurrencesRun locally to see detailed breakdown: ./.github/scripts/count-earthly.shNote that the goal is not to reach 0. |
0f06669 to
96f01e0
Compare
There was a problem hiding this comment.
Code Review
This pull request introduces a mechanism to automatically resolve and rewrite Earthfile references for the root of a project by walking up the directory tree to find the nearest ancestor containing an Earthfile. It also adds comprehensive unit tests for this new behavior. The review feedback highlights a potential test flakiness issue in environments where GOTMPDIR is located within a repository containing an Earthfile at its root, and suggests a robust way to verify the resolved path.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
f9a261e to
9ebf4bb
Compare
9ebf4bb to
3e1f81f
Compare
Executing
earthinside theinternaldirectory, the targets are prefixed with a relative path to Earthfile.