mirror of
https://github.com/moby/buildkit.git
synced 2026-11-06 05:16:45 +00:00
Release the mount or temp dir in CreateFS on every error path. An invalid src could previously leak a mount for each failed export, and failing attestation steps had the same leak. Pass src to fs.RootPath unmodified so symlinks are resolved before "..", and stop trimming whitespace from the value. Keep the underlying error when reporting src failures so errors.Is still matches. Add tests for mount release, mode=delete and platform-split=false with src, and make the src error assertions work on Windows. Note in the README that older daemons ignore src. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>