Merge pull request #1352 from tonistiigi/windows-build-fix

file: fix compilation on windows
v0.7
Tibor Vass 2020-01-30 20:49:19 -08:00 committed by GitHub
commit 98ce74b987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,7 @@
// +build windows
package main
import (
_ "github.com/moby/buildkit/solver/llbsolver/ops"
)

View File

@ -26,3 +26,8 @@ buildctl build --progress=plain --frontend=dockerfile.v0 \
$currentcontextBuildctl \
--opt platform=$PLATFORMS \
--import-cache cicache.buildk.it/moby/buildkit/master:binaries-cross-helper
buildctl build --progress=plain --frontend=dockerfile.v0 \
$currentcontextBuildctl \
--opt platform=windows/amd64 --opt target=buildkit-buildkitd \
--import-cache cicache.buildk.it/moby/buildkit/master:binaries

View File

@ -9,6 +9,6 @@ import (
copy "github.com/tonistiigi/fsutil/copy"
)
func readUser(chopt *pb.ChownOpt, mu, mg fileoptypes.Mount) (*copy.ChownOpt, error) {
func readUser(chopt *pb.ChownOpt, mu, mg fileoptypes.Mount) (*copy.User, error) {
return nil, errors.New("only implemented in linux")
}