Skip to content

Support commands specified as space-separated exe/args #480

@anuraaga

Description

@anuraaga

I have packaged shellcheck into a form that can be executed with go run

https://github.com/wasilibs/go-shellcheck

I'd like to then specify it when running actionlint so that when debugging a CI failure, devs can copy/paste to reproduce the command without any tool installation / version mismatches.

go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.4 -shellcheck="go run github.com/wasilibs/go-shellcheck/cmd/shellcheck@343642672fe6b725a201c27a742cbed0f5c5075a"

This patch seems to work well with that pattern

https://github.com/rhysd/actionlint/compare/main...anuraaga:process-args?expand=1

Is it something that could be considered for the project? If so, I'll send a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions