-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
39 lines (38 loc) · 1.18 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This approach is adapted from
# https://jondot.medium.com/shipping-rust-binaries-with-goreleaser-d5aa42a46be0
#
# Basically, we want to use goreleaser to handle packaging and releasing
# git-cvs-fast-import binaries, since it already has all the functionality
# required to build the packages and create the changelog. To do that, we
# provide a dummy main package that goreleaser can happily build into a no-op
# binary, and then overwrite the binary with one that we build normally using
# cargo.
project_name: git-cvs-fast-import
builds:
- main: .goreleaser/dummy.go
goarch:
- amd64
goos:
- linux
binary: git-cvs-fast-import
hooks:
post: sh .goreleaser/post.sh
nfpms:
- package_name: git-cvs-fast-import
vendor: Sourcegraph
homepage: https://github.com/sourcegraph/git-cvs-fast-import
maintainer: Batch Changes <[email protected]>
description: A tool to import CVS repositories into Git for analysis
license: Proprietary
formats:
- rpm
- deb
dependencies:
- git
bindir: /usr/bin
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc