New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File copy modification timestamp is off #4057
Labels
type:bug
Something isn't working
Comments
Did you tried See docs. |
Yes this does the trick, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: