mirror of
https://github.com/moby/buildkit.git
synced 2026-08-09 01:01:08 +00:00
Merge pull request #1352 from tonistiigi/windows-build-fix
file: fix compilation on windows
This commit is contained in:
7
cmd/buildkitd/main_windows.go
Normal file
7
cmd/buildkitd/main_windows.go
Normal file
@@ -0,0 +1,7 @@
|
||||
// +build windows
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "github.com/moby/buildkit/solver/llbsolver/ops"
|
||||
)
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user