Skip to content

Commit c8effff

Browse files
committed
Fix CI lint error
Signed-off-by: Jin Dong <[email protected]>
1 parent b430e5a commit c8effff

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

pkg/oci/spec_opts.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -595,13 +595,13 @@ func WithUser(userstr string) SpecOpts {
595595
setProcess(s)
596596
s.Process.User.AdditionalGids = nil
597597
// While the Linux kernel allows the max UID to be MaxUint32 - 2,
598-
// and the OCI Runtime Spec has no definition about the max UID,
599-
// the runc implementation is known to require the UID to be <= MaxInt32.
600-
//
601-
// containerd follows runc's limitation here.
602-
//
603-
// In future we may relax this limitation to allow MaxUint32 - 2,
604-
// or, amend the OCI Runtime Spec to codify the implementation limitation.
598+
// and the OCI Runtime Spec has no definition about the max UID,
599+
// the runc implementation is known to require the UID to be <= MaxInt32.
600+
//
601+
// containerd follows runc's limitation here.
602+
//
603+
// In future we may relax this limitation to allow MaxUint32 - 2,
604+
// or, amend the OCI Runtime Spec to codify the implementation limitation.
605605
const (
606606
minUserID = 0
607607
maxUserID = math.MaxInt32

pkg/oci/spec_opts_linux_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ guest:x:100:guest
105105
},
106106
}
107107
for _, testCase := range testCases {
108-
testCase := testCase
109108
t.Run(testCase.user, func(t *testing.T) {
110109
t.Parallel()
111110
s := Spec{

0 commit comments

Comments
 (0)