Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
fetch-depth: 2
- uses: actions/setup-go@v6
with:
go-version: "${{ env.GO_VERSION }}"
go-version: stable # modernize@latest may require latest Go.
- name: install deps
run: |
sudo apt -q update
Expand All @@ -68,7 +68,7 @@ jobs:
git diff --exit-code
- name: run modernize
run: |
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
go run golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest -fix ./...
git diff --exit-code

compile-buildtags:
Expand Down
7 changes: 4 additions & 3 deletions libcontainer/integration/exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1067,15 +1067,16 @@ func TestHook(t *testing.T) {
ok(t, err)

// e.g: 'ls /prestart ...'
cmd := "ls "
var cmd strings.Builder
cmd.WriteString("ls ")
for _, hook := range hookFiles {
cmd += "/" + hook + " "
cmd.WriteString("/" + hook + " ")
}

var stdout bytes.Buffer
pconfig := libcontainer.Process{
Cwd: "/",
Args: []string{"sh", "-c", cmd},
Args: []string{"sh", "-c", cmd.String()},
Env: standardEnvironment,
Stdin: nil,
Stdout: &stdout,
Expand Down