mirror of
https://github.com/mudler/luet.git
synced 2025-09-28 16:05:45 +00:00
Update go.mod and vendor
This commit is contained in:
26
vendor/github.com/moby/buildkit/snapshot/localmounter_windows.go
generated
vendored
26
vendor/github.com/moby/buildkit/snapshot/localmounter_windows.go
generated
vendored
@@ -1,26 +0,0 @@
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/containerd/containerd/mount"
|
||||
)
|
||||
|
||||
func (lm *localMounter) Unmount() error {
|
||||
lm.mu.Lock()
|
||||
defer lm.mu.Unlock()
|
||||
|
||||
if lm.target != "" {
|
||||
if err := mount.Unmount(lm.target, 0); err != nil {
|
||||
return err
|
||||
}
|
||||
os.RemoveAll(lm.target)
|
||||
lm.target = ""
|
||||
}
|
||||
|
||||
if lm.release != nil {
|
||||
return lm.release()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user