-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed as not planned
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.
Description
when I try to fix containerd bug containerd/containerd#12301
I find it doesn't work on windows.
func syncDir(dir string) error {
dirF, err := os.Open(dir)
if err != nil {
return fmt.Errorf("failed to open dir %s: %w", dir, err)
}
err = dirF.Sync()
dirF.Close()
if err != nil {
return fmt.Errorf("failed to sync dir %s: %w", dir, err)
}
return nil
}
// doesn't work on windows.
if err := syncDir(filepath.Dir(target)); err != nil {
return err
}
=== FAIL: plugins/content/local TestContent/UpdateStatus (0.03s)
testsuite.go:582: Commit failed: failed to sync dir C:\Users\RUNNER1\AppData\Local\Temp\content-suite-fs-1273908733\blobs\sha256: sync C:\Users\RUNNER1\AppData\Local\Temp\content-suite-fs-1273908733\blobs\sha256: Access is denied.
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.