File tree 2 files changed +13
-7
lines changed
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,18 @@ clean:
16
16
test : test-local
17
17
set -eu; \
18
18
for p in $( PACKAGES) ; do \
19
- (cd $$ p; go test $( RUN_VIA_SUDO) -v .); \
19
+ if $p = user && go version | grep -qv go1.18; then \
20
+ (cd $$ p; go test $( RUN_VIA_SUDO) -v .); \
21
+ fi \
20
22
done
21
23
22
24
.PHONY : tidy
23
25
tidy :
24
26
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.18; then \
29
+ (cd $$ p; go mod tidy); \
30
+ fi \
27
31
done
28
32
29
33
# Test the mount module against the local mountinfo source code instead of the
@@ -42,9 +46,11 @@ lint: $(BINDIR)/golangci-lint
42
46
$(BINDIR ) /golangci-lint version
43
47
set -eu; \
44
48
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.18; then \
50
+ (cd $$ p; \
51
+ go mod download; \
52
+ ../$(BINDIR ) /golangci-lint run); \
53
+ fi \
48
54
done
49
55
50
56
$(BINDIR ) /golangci-lint : $(BINDIR )
Original file line number Diff line number Diff line change 1
1
module github.com/moby/sys/user
2
2
3
- go 1.18
3
+ go 1.21
4
4
5
5
require golang.org/x/sys v0.1.0
You can’t perform that action at this time.
0 commit comments