File tree Expand file tree Collapse file tree 3 files changed +2
-32
lines changed Expand file tree Collapse file tree 3 files changed +2
-32
lines changed Original file line number Diff line number Diff line change 49
49
# Require: The version of golangci-lint to use.
50
50
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
51
51
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
52
- version : v1.54
52
+ version : v1.57
53
53
54
54
# Optional: working directory, useful for monorepos
55
55
# working-directory: somedir
67
67
# takes precedence over all other caching options.
68
68
# skip-cache: true
69
69
70
- # Optional: if set to true, then the action won't cache or restore ~/go/pkg.
71
- # skip-pkg-cache: true
72
-
73
- # Optional: if set to true, then the action won't cache or restore ~/.cache/go-build.
74
- # skip-build-cache: true
75
-
76
70
# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
77
71
# install-mode: "goinstall"
78
72
```
Original file line number Diff line number Diff line change @@ -29,14 +29,6 @@ inputs:
29
29
takes precedence over all other caching options.
30
30
default : ' false'
31
31
required : false
32
- skip-pkg-cache :
33
- description : " if set to true then the action doesn't cache or restore ~/go/pkg."
34
- default : ' false'
35
- required : false
36
- skip-build-cache :
37
- description : " if set to true then the action doesn't cache or restore ~/.cache/go-build."
38
- default : ' false'
39
- required : false
40
32
install-mode :
41
33
description : " The mode to install golangci-lint. It can be 'binary' or 'goinstall'."
42
34
default : " binary"
Original file line number Diff line number Diff line change @@ -24,23 +24,7 @@ const getLintCacheDir = (): string => {
24
24
}
25
25
26
26
const getCacheDirs = ( ) : string [ ] => {
27
- // Not existing dirs are ok here: it works.
28
- const skipPkgCache = core . getInput ( `skip-pkg-cache` , { required : true } ) . trim ( )
29
- const skipBuildCache = core . getInput ( `skip-build-cache` , { required : true } ) . trim ( )
30
- const dirs = [ getLintCacheDir ( ) ]
31
-
32
- if ( skipBuildCache . toLowerCase ( ) == "true" ) {
33
- core . info ( `Omitting ~/.cache/go-build from cache directories` )
34
- } else {
35
- dirs . push ( path . resolve ( `${ process . env . HOME } /.cache/go-build` ) )
36
- }
37
- if ( skipPkgCache . toLowerCase ( ) == "true" ) {
38
- core . info ( `Omitting ~/go/pkg from cache directories` )
39
- } else {
40
- dirs . push ( path . resolve ( `${ process . env . HOME } /go/pkg` ) )
41
- }
42
-
43
- return dirs
27
+ return [ getLintCacheDir ( ) ]
44
28
}
45
29
46
30
const getIntervalKey = ( invalidationIntervalDays : number ) : string => {
You can’t perform that action at this time.
0 commit comments