
1. Revendors github.com/Microsoft/hcsshim to the latest known good commit. This includes numerous bug fixes and improvements. 2. Vendors indirect dependency on go.opencensus.io since hcsshim now uses trace correlation. Signed-off-by: Justin Terry (VM) <juterry@microsoft.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)
|
|
}
|