Skip to content

Commit

Permalink
solver: change uid to uint
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <[email protected]>
  • Loading branch information
tonistiigi committed Feb 1, 2019
1 parent 69a4c26 commit f36dcce
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion client/llb/fileop.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (up *UserOpt) marshal(base pb.InputIndex) *pb.UserOpt {
if up.Name != "" {
return &pb.UserOpt{Name: up.Name, Input: base}
}
return &pb.UserOpt{Id: int32(up.UID), Input: -1}
return &pb.UserOpt{Id: uint32(up.UID), Input: -1}
}

func Mkfile(p string, m os.FileMode, dt []byte, opts ...MkfileOption) *FileAction {
Expand Down
30 changes: 15 additions & 15 deletions solver/pb/ops.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion solver/pb/ops.proto
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,5 @@ message ChownOpt {
message UserOpt {
string name = 1;
int64 input = 2 [(gogoproto.customtype) = "InputIndex", (gogoproto.nullable) = false]; // input that contains /etc/passwd if using a name
int32 id = 3;
uint32 id = 3;
}

0 comments on commit f36dcce

Please sign in to comment.