Skip to content

Use variables instead of file substitution in nfpm #412

@codefromthecrypt

Description

@codefromthecrypt

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' $< > $@

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions