Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

up/go: add support to go install tools #714

Open
XaF opened this issue Oct 3, 2024 · 0 comments
Open

up/go: add support to go install tools #714

XaF opened this issue Oct 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@XaF
Copy link
Owner

XaF commented Oct 3, 2024

This should support to go install tools at specific versions (or just at the latest).
When installed with specific versions, it could avoid calling go install each time and would only enforce the version to be installed.

e.g. instead of having to write:

env:
  MYTOOL_VERSION: vX.Y.Z

up:
- go: auto
- custom:
      name: Install my tool
      met?: command -v mytool@${MYTOOL_VERSION}
      meet: |
        rm -f "${GOBIN}/mytool@"*
        go install path.to/mytool@${MYTOOL_VERSION}
        (cd "${GOBIN}" && ln -sf "./mytool" "./mytool@${MYTOOL_VERSION}")

We could simply write:

up:
  - go:
      version: auto
      go-install:
        - path.to/mytool: vX.Y.Z

And omni would take care of setting up and maintaining the version when omni up is called.

@XaF XaF added the enhancement New feature or request label Oct 3, 2024
@XaF XaF changed the title up: go: add support to go install tools up/go: add support to go install tools Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant