podman-build/vendor/github.com/containers/buildah/pkg/volumes/volumes.go
2025-10-11 12:30:35 +09:00

14 lines
280 B
Go

package volumes
import (
"os"
"github.com/containers/buildah/internal/volumes"
)
// CleanCacheMount gets the cache parent created by `--mount=type=cache` and removes it.
func CleanCacheMount() error {
cacheParent := volumes.CacheParent()
return os.RemoveAll(cacheParent)
}