mirror of
https://github.com/containers/skopeo.git
synced 2025-09-27 13:13:52 +00:00
Update module github.com/containers/storage to v1.47.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
9
vendor/github.com/containers/storage/drivers/windows/windows.go
generated
vendored
9
vendor/github.com/containers/storage/drivers/windows/windows.go
generated
vendored
@@ -64,8 +64,7 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
type checker struct {
|
||||
}
|
||||
type checker struct{}
|
||||
|
||||
func (c *checker) IsMounted(path string) bool {
|
||||
return false
|
||||
@@ -102,7 +101,7 @@ func InitFilter(home string, options graphdriver.Options) (graphdriver.Driver, e
|
||||
return nil, fmt.Errorf("%s is on an ReFS volume - ReFS volumes are not supported", home)
|
||||
}
|
||||
|
||||
if err := idtools.MkdirAllAs(home, 0700, 0, 0); err != nil {
|
||||
if err := idtools.MkdirAllAs(home, 0o700, 0, 0); err != nil {
|
||||
return nil, fmt.Errorf("windowsfilter failed to create '%s': %w", home, err)
|
||||
}
|
||||
|
||||
@@ -885,7 +884,7 @@ func (d *Driver) resolveID(id string) (string, error) {
|
||||
|
||||
// setID stores the layerId in disk.
|
||||
func (d *Driver) setID(id, altID string) error {
|
||||
return os.WriteFile(filepath.Join(d.dir(id), "layerId"), []byte(altID), 0600)
|
||||
return os.WriteFile(filepath.Join(d.dir(id), "layerId"), []byte(altID), 0o600)
|
||||
}
|
||||
|
||||
// getLayerChain returns the layer chain information.
|
||||
@@ -915,7 +914,7 @@ func (d *Driver) setLayerChain(id string, chain []string) error {
|
||||
}
|
||||
|
||||
jPath := filepath.Join(d.dir(id), "layerchain.json")
|
||||
err = os.WriteFile(jPath, content, 0600)
|
||||
err = os.WriteFile(jPath, content, 0o600)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to write layerchain file - %s", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user