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
When copying files, the files stats don't change as expected. The specific important stat is the date modified of the file, which is always 2020-04-16 12:00:00.000000000 +0000.
I encountered this error when go build inside a container failed due to cache problems: it thought that a file hasn't changed when in fact it has. This usually doesn't break go's build - go usually understands that the file has changed, but apparently in some cases it relies on the file's modification date.
Adding a RUN touch * line right after the copy solves the problem (and go builds successfully), as the modification & access stats change.
In the log below I ran the simple Earthfile:
VERSION --try 0.8
test:
FROM ubuntu:22.04
COPY file file
RUN cat file
RUN stat file
When running earthly -i +test twice, when changing the content of file in the middle, I'd expect that the file's modify date stat would change, but it doesn't. The "change" date changes, and I'd expect the modify date to be the same.
What went wrong?
When copying files, the files stats don't change as expected. The specific important stat is the date modified of the file, which is always
2020-04-16 12:00:00.000000000 +0000
.I encountered this error when
go build
inside a container failed due to cache problems: it thought that a file hasn't changed when in fact it has. This usually doesn't break go's build - go usually understands that the file has changed, but apparently in some cases it relies on the file's modification date.Adding a
RUN touch *
line right after the copy solves the problem (and go builds successfully), as the modification & access stats change.In the log below I ran the simple Earthfile:
When running
earthly -i +test
twice, when changing the content offile
in the middle, I'd expect that the file's modify date stat would change, but it doesn't. The "change" date changes, and I'd expect the modify date to be the same.What earthly version?
earthly version v0.8.8
The text was updated successfully, but these errors were encountered: