diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 1f87c86..b69fdf1 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -10,9 +10,12 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: - version: v1.41 + version: v1.45 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f57158d..e78bafc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,14 +15,14 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.16 + go-version: 1.18 - name: Run GoReleaser uses: goreleaser/goreleaser-action@5a54d7e660bda43b405e8463261b3d25631ffe86 #v2.7.0 @@ -45,7 +45,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Log in to the Container registry uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 #v1.10.0 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 313a24c..8b7e59d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -24,13 +24,13 @@ jobs: with: access_token: ${{ github.token }} - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v3 with: go-version: ${{ matrix.go-version }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Cache go modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/.cache/go-build @@ -43,4 +43,4 @@ jobs: - name: Upload coverage to Codecov if: ${{ matrix.update-coverage }} - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 diff --git a/main.go b/main.go index 98fc227..b2ef240 100644 --- a/main.go +++ b/main.go @@ -46,6 +46,7 @@ The pattern argument can be provided multiple times, and may also refer to single files. Flags: + ` var ( @@ -63,7 +64,7 @@ var ( func init() { flag.Usage = func() { - fmt.Fprintln(os.Stderr, helpText) + fmt.Fprint(os.Stderr, helpText) flag.PrintDefaults() } flag.Var(&skipExtensionFlags, "skip", "[deprecated: see -ignore] file extensions to skip, for example: -skip rb -skip go")