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

Support template in go_install package's path attribute #1084

Closed
suzuki-shunsuke opened this issue Aug 6, 2022 · 0 comments · Fixed by #1487
Closed

Support template in go_install package's path attribute #1084

suzuki-shunsuke opened this issue Aug 6, 2022 · 0 comments · Fixed by #1487
Labels
enhancement New feature or request

Comments

@suzuki-shunsuke
Copy link
Member

Feature Overview

Support template in go_install package's path attribute.

Why is the feature needed?

Please explain the problem you want to solve.

Go Module package includes the major version.
Without template, we have to define version_constraint per major version.
It isn't desirable.

sprig supports functions about semantic versioning.

http://masterminds.github.io/sprig/semver.html

Does the feature include Breaking Changes?

No.

Example Code

command and configuration

registry.yaml

https://github.com/volatiletech/sqlboiler

packages:
  - type: go_install
    repo_owner: volatiletech
    repo_name: sqlboiler
    description: Generate a Go ORM tailored to your database schema
    path: github.com/volatiletech/sqlboiler/v{{(semver .Version).Major}}
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
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant