Skip to content

Support custom plugins #690

Closed
Closed
@connorszczepaniak-wk

Description

@connorszczepaniak-wk

Welcome

  • Yes, I understand that the GitHub action repository is not the repository of golangci-lint itself.
  • Yes, I've searched similar issues on GitHub and didn't find any.

Your feature request related to a problem? Please describe.

I'd like to be able to use custom golangci-lint plugins with the GitHub action. I can almost achieve this with the following steps:

  • Build a docker container with a pre-built golangci-lint
  • Also build my custom plugins and put them in this docker container
  • Use this container in the GitHub action with container: my-golangci-container
  • Missing capability: tell the action to skip downloading the asset and point to the pre-installed version on my container instead

Since plugins need to be built from the same go.mod that the tool itself is built from, I need a way to point the action to my binary.

Describe the solution you'd like.

#676 Is achieving something similar, but for this use-case it can be even simpler: if I can specify the path to golangci-lint on the running container and tell the action to skip downloading the asset (and just use the one I'm pointing to instead), everything would work well.

Describe alternatives you've considered.

I can currently run golangci-lint as a separate action on my own container, but then I miss out on getting comments on my PR, caching, etc.

Additional context.

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions