-
Notifications
You must be signed in to change notification settings - Fork 515
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
goreleaser: bump version & add nfmp support #440
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,12 +29,26 @@ builds: | |
|
||
archives: | ||
- format: tar.gz | ||
name_template: >- | ||
{{ .Binary }}_{{ .Version }}_ | ||
{{- if eq .Os "darwin" }}osx{{ else }}{{ .Os }}{{ end }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}x86_32 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
{{- with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }} | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
replacements: | ||
amd64: x86_64 | ||
386: x86_32 | ||
darwin: osx | ||
files: | ||
- LICENSE | ||
|
||
nfpms: | ||
- vendor: FullStory | ||
homepage: https://github.com/fullstorydev/grpcurl/ | ||
maintainer: Engineering at FullStory <fixme@fixme> | ||
description: 'Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers' | ||
license: MIT | ||
id: nfpms | ||
formats: | ||
- deb | ||
- rpm | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dumb question but... is this PR going to cause us to try to publish these? Or just build them locally? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not going to publish them, it's only going to build the packages. The step of submitting them would be distribution-specific |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you unpack this a little? Is there some default value that you're overriding, which changed in between the goreleaser versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or is this just the new way to do
replacements
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the new way of doing
replacements
, and I took the default name_template for binaries, while updating it with the required if/else to make it work exactly like it was before