mirror of
https://github.com/moby/buildkit.git
synced 2026-08-04 14:50:21 +00:00
23 lines
553 B
Go
23 lines
553 B
Go
//go:build !linux && !windows
|
|
|
|
package ops
|
|
|
|
import (
|
|
"github.com/moby/buildkit/snapshot"
|
|
"github.com/moby/buildkit/solver/pb"
|
|
"github.com/moby/buildkit/worker"
|
|
"github.com/pkg/errors"
|
|
copy "github.com/tonistiigi/fsutil/copy"
|
|
)
|
|
|
|
func getReadUserFn(_ worker.Worker) func(chopt *pb.ChownOpt, mu, mg snapshot.Mountable) (*copy.User, error) {
|
|
return readUser
|
|
}
|
|
|
|
func readUser(chopt *pb.ChownOpt, mu, mg snapshot.Mountable) (*copy.User, error) {
|
|
if chopt == nil {
|
|
return nil, nil
|
|
}
|
|
return nil, errors.New("only implemented in linux and windows")
|
|
}
|