Skip to content

Error: "cannot find GOROOT directory" #14

@ditek

Description

@ditek

I think there's a bug when running on subdirectories.
Running staticcheck ./... locally works. I added the action to my Yaml file as:

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-go@v1
        with:
          go-version: 1.16
      - run: go test ./...
      - name: staticcheck
        uses: grandcolline/golang-github-actions@v1.1.0
        with:
          run: staticcheck
          flags: ./...
          token: ${{ secrets.GITHUB_TOKEN }}

This is the output of the action:

image

Metadata

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