File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ module github.com/containerd/nerdctl/v2
22
33go 1.22.7
44
5+ toolchain go1.24.0
6+
57// FIXME:
68// github.com/docker/docker/pkg/sysinfo has been replaced by a fork kept under ./pkg2/sysinfo
79// as Moby is not going to move to containerd v2 anytime soon or fix these transient dependencies.
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Copyright The containerd Authors.
4+
5+ # Licensed under the Apache License, Version 2.0 (the "License");
6+ # you may not use this file except in compliance with the License.
7+ # You may obtain a copy of the License at
8+
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS,
13+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ # See the License for the specific language governing permissions and
15+ # limitations under the License.
16+
17+ # FIXME: goimports-reviser is currently broken when it comes to ./...
18+ # Specifically, it will ignore arguments, and will return exit 0 regardless
19+ # This here is a workaround, until they fix it upstream: https://github.com/incu6us/goimports-reviser/pull/157
20+
21+ # shellcheck disable=SC2034,SC2015
22+ set -o errexit -o errtrace -o functrace -o nounset -o pipefail
23+
24+ ex=0
25+
26+ while read -r file; do
27+ goimports-reviser -list-diff -set-exit-status -output stdout -company-prefixes " go.farcloser.world" " $file " > /dev/null 2>&1 || {
28+ ex=$?
29+ >&2 printf " Imports are not listed properly in %s. Consider calling make fix-imports.\n" " $file "
30+ }
31+ done < <( find ./ -type f -name ' *.go' )
32+
33+ exit " $ex "
You can’t perform that action at this time.
0 commit comments