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

Use variables instead of file substitution in nfpm #412

Open
codefromthecrypt opened this issue Nov 17, 2021 · 0 comments
Open

Use variables instead of file substitution in nfpm #412

codefromthecrypt opened this issue Nov 17, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@codefromthecrypt
Copy link
Contributor

This part of the makefile could be changed to not write an intermediate file, instead temporarily setting variables like GOARCH and NFPM_VERSION

See https://github.com/goreleaser/nfpm/blob/main/www/docs/configuration.md

build/func-e_linux_%/nfpm.yaml: packaging/nfpm/nfpm.yaml build/func-e_linux_%/func-e
	@mkdir -p $(@D)
	@sed -e 's/amd64/$(*)/g' -e 's/v0.0.1/$(nfpm_version)/g' $< > $@
@codefromthecrypt codefromthecrypt added enhancement New feature or request good first issue Good for newcomers labels Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant