#๐ @Erik Sipsma @vito Hey, I'm guessing
1 messages ยท Page 1 of 1 (latest)
guessing you tried and that doesn't work already? I feel like most of the low-level plumbing probably exists to support it, might just need to be hooked up in a few missing places?
going off memory, i'll double check
oh wait, I'll try first
I just assumed
bold of me
(thought it would be wrapped into something different than an exec error)
haha, looking at the relevant code there's a chance it might work already. The dockerfile code-paths are slightly different but when you RUN something I think it still ends up hitting these lines: https://github.com/sipsma/dagger/blob/129e0f14892718036f11497eea6ff28f001bf551/engine/buildkit/client.go#L175-L175
which is where the magic happens
(in WrapError)
doesn't seem to get caught
ah, it might be this? https://github.com/sipsma/dagger/blob/129e0f14892718036f11497eea6ff28f001bf551/engine/buildkit/ref.go#L353-L353
basically the exec-op created for a dockerfile RUN doesn't have the mount where we store stdout/stderr/exit-code, so then WrapError gives up on trying to annotate it with ExecError stuff
trying to change that would require hacking the dockerfile frontend to include extra rw mounts in the exec-op created for RUNs
so not sure what level of desperation you're at ๐
definitely BELOW that haha
I'm admittedly going off just reading the code, if you want to confirm it's hitting that line I linked to above you could add some println debugging, just on the off chance i'm misreading/remembering