Compare commits
2 Commits
51ccccc6cc
...
eb994a0c95
Author | SHA1 | Date |
---|---|---|
sudo pacman -Syu | eb994a0c95 | |
dependabot[bot] | d829a4e79d |
|
@ -1,16 +1,14 @@
|
||||||
run:
|
run:
|
||||||
timeout: 2m
|
timeout: 5m
|
||||||
tests: false
|
tests: false
|
||||||
skip-dirs:
|
skip-dirs:
|
||||||
- ".*test.*"
|
- ".*test.*"
|
||||||
- ".*mock.*"
|
- ".*mock.*"
|
||||||
- ".*generated.*"
|
|
||||||
- ".*example.*"
|
- ".*example.*"
|
||||||
- ".*utils.*"
|
- ".*utils.*"
|
||||||
skip-files:
|
skip-files:
|
||||||
- ".*Mock.*"
|
- ".*Mock.*"
|
||||||
- ".*_mock.*"
|
- ".*_mock.*"
|
||||||
- ".*_generated.*"
|
|
||||||
|
|
||||||
output:
|
output:
|
||||||
sort-results: true
|
sort-results: true
|
||||||
|
@ -35,11 +33,11 @@ linters:
|
||||||
- gocritic
|
- gocritic
|
||||||
- goerr113
|
- goerr113
|
||||||
- gofumpt
|
- gofumpt
|
||||||
- gomodguard
|
|
||||||
- gosec
|
- gosec
|
||||||
- importas
|
- importas
|
||||||
- makezero
|
- makezero
|
||||||
- nilnil
|
- nilnil
|
||||||
|
- noctx
|
||||||
- prealloc
|
- prealloc
|
||||||
- reassign
|
- reassign
|
||||||
# - rowserrcheck
|
# - rowserrcheck
|
||||||
|
@ -69,16 +67,26 @@ linters-settings:
|
||||||
- unmarshal
|
- unmarshal
|
||||||
- unreachable
|
- unreachable
|
||||||
- unusedresult
|
- unusedresult
|
||||||
|
staticcheck:
|
||||||
|
checks: ["all", "-SA1019"]
|
||||||
# Custom
|
# Custom
|
||||||
gocritic:
|
gocritic:
|
||||||
disabled-checks:
|
disabled-checks:
|
||||||
- ifElseChain
|
- ifElseChain
|
||||||
- singleCaseSwitch
|
- singleCaseSwitch
|
||||||
|
- unnamedResult
|
||||||
|
- whyNoLint
|
||||||
enabled-tags:
|
enabled-tags:
|
||||||
- diagnostic
|
- diagnostic
|
||||||
- style
|
- style
|
||||||
- performance
|
|
||||||
gosec:
|
gosec:
|
||||||
|
excludes:
|
||||||
|
- G101
|
||||||
|
- G112
|
||||||
|
- G402
|
||||||
|
- G404
|
||||||
|
- G501
|
||||||
|
- G505
|
||||||
exclude-generated: true
|
exclude-generated: true
|
||||||
reassign:
|
reassign:
|
||||||
patterns:
|
patterns:
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -4,7 +4,7 @@ go 1.18
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/make-go-great/color-go v0.4.1
|
github.com/make-go-great/color-go v0.4.1
|
||||||
github.com/urfave/cli/v2 v2.25.6
|
github.com/urfave/cli/v2 v2.25.7
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -11,8 +11,8 @@ github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9
|
||||||
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
||||||
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
|
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
|
||||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||||
github.com/urfave/cli/v2 v2.25.6 h1:yuSkgDSZfH3L1CjF2/5fNNg2KbM47pY2EvjBq4ESQnU=
|
github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs=
|
||||||
github.com/urfave/cli/v2 v2.25.6/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ=
|
github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ=
|
||||||
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU=
|
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU=
|
||||||
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
|
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
|
||||||
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
|
|
@ -144,6 +144,7 @@ func (a *action) runReadDepsFile(c *cli.Context) (depsStr string, useDepFile boo
|
||||||
return "", false, fmt.Errorf("failed to parse deps file url %s: %w", a.flags.depsURL, err)
|
return "", false, fmt.Errorf("failed to parse deps file url %s: %w", a.flags.depsURL, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// nolint:noctx
|
||||||
httpRsp, err := http.Get(depsURL.String())
|
httpRsp, err := http.Get(depsURL.String())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", false, fmt.Errorf("failed to http get %s: %w", depsURL.String(), err)
|
return "", false, fmt.Errorf("failed to http get %s: %w", depsURL.String(), err)
|
||||||
|
|
Loading…
Reference in New Issue