mirror of
https://github.com/containers/podman.git
synced 2025-12-05 12:52:12 +08:00
Bump to Buildah v1.11.5. Most notably changes to the podman build `--pull` functionality. `--pull=true` and `--pull=false` now work as Docker does, `--pull-never` added to supply the functionality of the old `--pull=false`. Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
14 lines
248 B
Go
14 lines
248 B
Go
package wclayer
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
"github.com/Microsoft/go-winio/pkg/guid"
|
|
)
|
|
|
|
// LayerID returns the layer ID of a layer on disk.
|
|
func LayerID(path string) (guid.GUID, error) {
|
|
_, file := filepath.Split(path)
|
|
return NameToGuid(file)
|
|
}
|