Skip to content

Commit 967fb6b

Browse files
committed
chore(packaging): add a dist Makefile target
Makes it easier to test packaging.
1 parent c64a522 commit 967fb6b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,10 @@ What we have done for now to improve performance:
7777

7878
Using go-git resulted in in-memory cloning (stream to memory and then to directory).
7979
This caused too high peaks of memory unsuitable for small VMs.
80+
81+
## Packaging
82+
83+
Packaging is done using [GoReleaser](https://goreleaser.com/) and
84+
[nFPM](https://nfpm.goreleaser.com/).
85+
86+
You can test packaging using `make dist`.

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,10 @@ test:
3434
.PHONY: build
3535
build: $(BIN)
3636
37+
# Use this target to test packaging
38+
.PHONY: dist
39+
dist:
40+
goreleaser release --skip-publish --skip-validate --rm-dist
41+
3742
$(BIN): $(SOURCES)
3843
$(GO) build $(GOFLAGS) -ldflags '-s -w $(LDFLAGS)' $(EXTRA_GOFLAGS) -o $@ ./cmd/$(BIN)

0 commit comments

Comments
 (0)