
This mainly fixes Linux vs generic Unix differences, with some differences between Darwin and Freebsd (which are close bit not identical). Should make fixing for other Unix platforms easier. Note there are not yet `runc` equivalents for these platforms; my current use case is image manipulation for the `moby` tool. However there is interest in OCI runtime ports for both platforms. Current status is that MacOS can build and run `ctr`, `dist` and `containerd` and some operations are supported. FreeBSD 11 still needs some more fixes to continuity for extended attributes. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
15 lines
356 B
Go
15 lines
356 B
Go
package archive
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
// as at MacOS 10.12 there is apparently no way to set timestamps
|
|
// with nanosecond precision. We could fall back to utimes/lutimes
|
|
// and lose the precision as a temporary workaround.
|
|
func chtimes(path string, atime, mtime time.Time) error {
|
|
return errors.New("OSX missing UtimesNanoAt")
|
|
}
|