-
Notifications
You must be signed in to change notification settings - Fork 386
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
WITH DOCKER
does not get CACHE
mounts
#2548
Comments
This fixes #2548 Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
This fixes #2548 Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
This fixes #2548 Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
This fixes #2548 Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
This fixes #2548 Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
One thing to note is that the In order to test the fix, I had to add a specific line that I would update between runs in order to bust the cache.
|
Oh, that's good to know. That was not a part of my actual scenario (I very rarely use Would it be more accurate to say that it's "available, but not referenced" (i.e., "write-only")? I would expect the cache to be written to (so other steps could see/use any changes), though it wouldn't use the contents itself. Even if you truly meant unavailable (not even mounted), that's fine, just not what I would expect (relative to how the rest of earthly works). |
Example:
My original problem was actually the reverse; making changes to the mount within
WITH DOCKER
were not persisted (thus not visible/usable in future invocations), but this easier to illustrate.I can't think of a reason why this shouldn't work, so is probably a logical extension of #2331. I'm guessing it's as simple as taking
earthly/earthfile2llb/converter.go
Lines 594 to 596 in 0946ea9
earthly/earthfile2llb/withdockerrun.go
Line 240 in 0946ea9
earthly/earthfile2llb/withdockerrunreg.go
Line 230 in 0946ea9
The text was updated successfully, but these errors were encountered: