➜ hlb git:(6f04a1d) ✗ cat bug.hlb
fs default() {
image "alpine"
run "doesnotexist" with option {
readonlyRootfs
}
}
➜ hlb git:(6f04a1d) ✗ go run ./cmd/hlb run bug.hlb
[+] Building 0.7s (2/2) FINISHED
=> resolve image config for docker.io/library/alpine:latest 0.4s
=> CACHED docker-image://docker.io/library/alpine:latest 0.0s
=> => resolve docker.io/library/alpine:latest 0.2s
➜ hlb git:(6f04a1d) ✗ echo $?
0
Does the run get optimized out of the build graph because the readonly root FS means it can't have side effects? I'm not sure this is expected behavior, since it could have side effects outside the context of the filesystem.
cc @hinshun @coryb
Does the
runget optimized out of the build graph because the readonly root FS means it can't have side effects? I'm not sure this is expected behavior, since it could have side effects outside the context of the filesystem.cc @hinshun @coryb