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 for interpolation of environment variables in nfpm.yml #4

Closed
bpicode opened this issue Feb 18, 2018 · 3 comments
Closed

Support for interpolation of environment variables in nfpm.yml #4

bpicode opened this issue Feb 18, 2018 · 3 comments

Comments

@bpicode
Copy link

bpicode commented Feb 18, 2018

It would be nice if I could write something like

name: myapp
arch: $GOARCH
platform: $GOOS
version: 1.1.3-$CI_BUILDNUMBER
...
@lrstanley
Copy link

Looks like this may be a usable library, with support for some of the nicer parameter substitution stuff located here: http://www.tldp.org/LDP/abs/html/refcards.html#AEN22728

I have yet to look at how it handles escaping (e.g. an escaped $), but would be nice.

@caarlos0
Copy link
Member

hey 👋

this is surely a nice proposal, but I really want to keep this as simple as possible for now.

Using envsubst like @lrstanley proposed is a good option! You can also check https://goreleaser.com/ , which probably does all things you want (and more) automagically (nfpm was actually created to be used within goreleaser).

I'll close this for now, you may reopen if you disagree.

Cheers!

@caarlos0
Copy link
Member

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@goreleaser goreleaser locked as resolved and limited conversation to collaborators Nov 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants