func-e icon indicating copy to clipboard operation
func-e copied to clipboard

Use variables instead of file substitution in nfpm

Open codefromthecrypt opened this issue 4 years ago • 0 comments

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 avatar Nov 17 '21 01:11 codefromthecrypt