File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,14 +16,18 @@ clean:
1616test : test-local
1717 set -eu; \
1818 for p in $( PACKAGES) ; do \
19- (cd $$ p; go test $( RUN_VIA_SUDO) -v .); \
19+ if $p = user && go version | grep -qv go1.17; then \
20+ (cd $$ p; go test $( RUN_VIA_SUDO) -v .); \
21+ fi \
2022 done
2123
2224.PHONY : tidy
2325tidy :
2426 set -eu; \
25- for p in $( PACKAGES) ; do \
26- (cd $$ p; go mod tidy); \
27+ for p in $( PACKAGES) ; do \
28+ if $p = user && go version | grep -qv go1.17; then \
29+ (cd $$ p; go mod tidy); \
30+ fi \
2731 done
2832
2933# Test the mount module against the local mountinfo source code instead of the
@@ -42,9 +46,11 @@ lint: $(BINDIR)/golangci-lint
4246 $(BINDIR ) /golangci-lint version
4347 set -eu; \
4448 for p in $( PACKAGES) ; do \
45- (cd $$ p; \
46- go mod download; \
47- ../$(BINDIR ) /golangci-lint run); \
49+ if $p = user && go version | grep -qv go1.17; then \
50+ (cd $$ p; \
51+ go mod download; \
52+ ../$(BINDIR ) /golangci-lint run); \
53+ fi \
4854 done
4955
5056$(BINDIR ) /golangci-lint : $(BINDIR )
Original file line number Diff line number Diff line change 11module github.com/moby/sys/user
22
3- go 1.17
3+ go 1.21
44
55require golang.org/x/sys v0.1.0
You can’t perform that action at this time.
0 commit comments