mirror of
https://github.com/containers/buildah.git
synced 2025-12-03 17:33:54 +00:00
This change is generated by `go1.23rc2 fix ./...`. Had to use go1.23rc2, since all released go versions have a bug preventing it from working with `go 1.22.0` in go.mod (opened https://github.com/golang/go/issues/68825, https://github.com/golang/go/issues/68824 for awareness). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
14 lines
355 B
Go
14 lines
355 B
Go
//go:build !linux
|
|
|
|
package bind
|
|
|
|
import (
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
|
)
|
|
|
|
// SetupIntermediateMountNamespace returns a no-op unmountAll() and no error.
|
|
func SetupIntermediateMountNamespace(spec *specs.Spec, bundlePath string) (unmountAll func() error, err error) {
|
|
stripNoBindOption(spec)
|
|
return func() error { return nil }, nil
|
|
}
|