Skip to content

Isolate golang tool dependencies #18867

Closed
@silverwind

Description

@silverwind

Tool dependencies are currently installed as global commands via the Makefile via block like this:

@hash gofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
  $(GO) install mvdan.cc/[email protected]; \
fi

This present the issue that once installed, a tool will never update without manual intervention and it makes it very hard to work on multiple projects or even branches with different tool versions.

golang/go#25922 (comment) shows a few possible solutions. Might be worth a try with bingo which seems to promise a lot, but I'm not sure it actually delivers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions