Skip to content

CI error at bash_completions.go when testing on Ubuntu latest and Go 1.11.x #1344

Closed
@koddr

Description

Hi! I catch this CI error, when try to test build my app.

I use latest Cobra v1.1.3 and GitHub Actions with this config:

name: Testing CLI

on:
  push:
    branches: [dev]
    paths:
      - "configs/**"
      - "**.go"

jobs:
  build:
    name: Testing build

    strategy:
      matrix:
        go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x]
        platform: [ubuntu-latest, windows-latest, macos-latest]

    runs-on: ${{ matrix.platform }}

    steps:
      - name: Set up Go 1.x
        uses: actions/setup-go@v2
        with:
          go-version: ${{ matrix.go-version }}
        id: go

      - name: Check out code into the Go module directory
        uses: actions/checkout@v2

      - name: Test
        run: go test -v -cover -race -timeout 60s ./...

And get this error at step with ubuntu-latest with go-1.11.x:

Error: ../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:22:24: undefined: io.StringWriter
Error: ../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:383:26: undefined: io.StringWriter
Error: ../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:423:24: undefined: io.StringWriter
Error: ../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:435:27: undefined: io.StringWriter
Error: ../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:473:25: undefined: io.StringWriter
Error: ../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:484:20: undefined: io.StringWriter
Error: ../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:499:38: undefined: io.StringWriter
Error: ../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:525:21: undefined: io.StringWriter
Error: ../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:562:28: undefined: io.StringWriter
Error: ../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:587:29: undefined: io.StringWriter

So, any ideas to solve this? 🤔

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions