mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-29 09:21:03 +02:00
Add debian package build to goreleaser
This makes the goreleaser output two debian packages. One for jsonnet, and another for jsonnetfmt. Since we don't use cgo, we don't need to take dependencies, as we're fully statically linked. The package name for this package will be jsonnet-go, and jsonnetfmt-go. There is a package that Ubuntu has released that's based on the C++ version. We have a conflict statement with it in order to avoid people installing both. We can ask the C++ package to rename itself to jsonnet-c++, and then add a provides for the package name jsonnet. The reason to not name this jsonnet immediately, even though the Go version if meant to supercede the C++ version, is that this doesn't fully implement the C++ version (for example, man pages).
This commit is contained in:
parent
755ee1ee88
commit
6967a29721
@ -51,3 +51,37 @@ archives:
|
||||
amd64: x86_64
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
|
||||
nfpms:
|
||||
- id: jsonnet
|
||||
package_name: jsonnet-go
|
||||
builds:
|
||||
- jsonnet
|
||||
description: A data templating language for app and tool developers
|
||||
homepage: https://github.com/google/go-jsonnet
|
||||
license: Apache 2.0
|
||||
formats:
|
||||
- deb
|
||||
bindir: /usr/bin
|
||||
maintainer: David Cunningham <dcunnin@google.com>
|
||||
file_name_template: "jsonnet-go_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
||||
overrides:
|
||||
deb:
|
||||
conflicts:
|
||||
# See: https://packages.ubuntu.com/jsonnet
|
||||
- jsonnet
|
||||
- id: jsonnetfmt
|
||||
package_name: jsonnetfmt-go
|
||||
builds:
|
||||
- jsonnetfmt
|
||||
homepage: https://github.com/google/go-jsonnet
|
||||
license: Apache 2.0
|
||||
formats:
|
||||
- deb
|
||||
bindir: /usr/bin
|
||||
file_name_template: "jsonnetfmt-go_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
||||
overrides:
|
||||
deb:
|
||||
conflicts:
|
||||
# See: https://packages.ubuntu.com/jsonnet
|
||||
- jsonnetfmt
|
||||
|
Loading…
x
Reference in New Issue
Block a user