mirror of
https://github.com/docker/docs.git
synced 2026-03-29 07:18:51 +07:00
pkg/archive contains code both invoked from cli (cross platform) and daemon (linux only) and Unix-specific dependencies break compilation on Windows. We extracted those stat-related funcs into platform specific implementations at pkg/system and added unit tests. Signed-off-by: Ahmet Alp Balkan <ahmetb@microsoft.com>
9 lines
157 B
Go
9 lines
157 B
Go
// +build windows
|
|
|
|
package system
|
|
|
|
func Lstat(path string) (*Stat, error) {
|
|
// should not be called on cli code path
|
|
return nil, ErrNotSupportedPlatform
|
|
}
|