File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
- .SHELLFLAGS = -ec
2
1
PACKAGES ?= mountinfo mount signal symlink
3
2
BINDIR ?= _build/bin
4
3
CROSS ?= linux/arm linux/arm64 linux/ppc64le linux/s390x \
15
14
16
15
.PHONY : test
17
16
test : test-local
17
+ set -eu; \
18
18
for p in $( PACKAGES) ; do \
19
- (cd $$ p && go test $( RUN_VIA_SUDO) -v .); \
19
+ (cd $$ p; go test $( RUN_VIA_SUDO) -v .); \
20
20
done
21
21
22
22
# Test the mount module against the local mountinfo source code instead of the
@@ -33,9 +33,11 @@ test-local:
33
33
.PHONY : lint
34
34
lint : $(BINDIR ) /golangci-lint
35
35
$(BINDIR ) /golangci-lint version
36
+ set -eu; \
36
37
for p in $( PACKAGES) ; do \
37
- (cd $$ p && go mod download \
38
- && ../$(BINDIR ) /golangci-lint run); \
38
+ (cd $$ p; \
39
+ go mod download; \
40
+ ../$(BINDIR ) /golangci-lint run); \
39
41
done
40
42
41
43
$(BINDIR ) /golangci-lint : $(BINDIR )
@@ -46,10 +48,11 @@ $(BINDIR):
46
48
47
49
.PHONY : cross
48
50
cross :
51
+ set -eu; \
49
52
for osarch in $( CROSS) ; do \
50
53
export GOOS=$$ {osarch%/* } GOARCH=$$ {osarch#* /}; \
51
54
echo " # building for $$ GOOS/$$ GOARCH" ; \
52
55
for p in $( PACKAGES) ; do \
53
- (cd $$ p && go build .); \
56
+ (cd $$ p; go build .); \
54
57
done ; \
55
58
done
You can’t perform that action at this time.
0 commit comments