File tree Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 21
21
# the cache key, and specifying multiple go.sums is not trivial
22
22
# (see https://github.com/moby/sys/pull/160 for details).
23
23
cache : false
24
+ - name : Install golangci-lint
25
+ uses : golangci/golangci-lint-action@v8
26
+ with :
27
+ version : v2.4
28
+ # We don't need to run golangci-lint here yet, but
29
+ # there's no way to avoid it, so run it on one module.
30
+ working-directory : ./mountinfo
24
31
- name : Set PACKAGES env
25
32
if : ${{ matrix.go-version == '1.18.x' }}
26
33
run : |
Original file line number Diff line number Diff line change 1
- /_build /
2
1
/mount /go-local. *
3
2
coverage.txt
Original file line number Diff line number Diff line change 1
1
PACKAGES ?= atomicwriter capability mountinfo mount reexec sequential signal symlink user userns
2
- BINDIR ?= _build/bin
3
2
CROSS ?= linux/arm linux/arm64 linux/ppc64le linux/s390x \
4
3
freebsd/amd64 openbsd/amd64 darwin/amd64 darwin/arm64 windows/amd64
5
4
SUDO ?= sudo -n
@@ -47,18 +46,14 @@ test-local:
47
46
cd atomicwriter && go mod tidy $(MOD ) && go test $(MOD ) $(RUN_VIA_SUDO ) -v .
48
47
$(RM ) atomicwriter/go-local.*
49
48
49
+ .PHONY : golangci-lint-version
50
+ golangci-lint-version :
51
+ golangci-lint version
52
+
50
53
.PHONY : lint
51
- lint : $( BINDIR ) / golangci-lint
52
- lint : CMD=go mod download; ../ $( BINDIR ) / golangci-lint run
54
+ lint : golangci-lint-version
55
+ lint : CMD=go mod download; golangci-lint run
53
56
lint : foreach
54
- lint :
55
- $(BINDIR ) /golangci-lint version
56
-
57
- $(BINDIR ) /golangci-lint : $(BINDIR )
58
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(BINDIR ) v2.0.2
59
-
60
- $(BINDIR ) :
61
- mkdir -p $(BINDIR )
62
57
63
58
.PHONY : cross
64
59
cross :
You can’t perform that action at this time.
0 commit comments