You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Earthfile copies everything from lib in to the image (COPY lib/* .) then saves everything in the current working directory in to the out directory. out should be exactly the same as lib after earthly runs.
Yeah; this is weird. the trouble is that ./* ends up including subdirectories; and those end up triggering logic to remove a folder. The files you are seeing are the ones in the last subdirectory that was processed.
I've got a fix; but in the interim a workaround could be to save the whole directory as a local artifact in the last target, like this:
SAVE ARTIFACT . AS LOCAL out/standalone/
This gets you everything in the same layout thats in /usr/build. Does that help?
Thanks @dchw! The fact that there were so many files in that artifact was actually a sign that we accidentally included way too much stuff in it (including those subdirectories), so we were able to work around it by removing all those extra files.
But I figured I'd put this on your radar anyways. :)
Repro steps
git clone https://github.com/jazzdan/earthly-tons-of-artifacts.git
cd earthly-tons-of-artifacts
earthly +docker-setup
What I expected to happen
The Earthfile copies everything from
lib
in to the image (COPY lib/* .
) then saves everything in the current working directory in to the out directory.out
should be exactly the same aslib
afterearthly
runs.What actually happens
out
contains a subset of files fromlib
:The text was updated successfully, but these errors were encountered: