Skip to content

Commit 53e000e

Browse files
committed
Ship the licence inside the release archive
The tarball held three binaries and nothing else. It is a distribution, so Apache-2.0 section 4(a) asks that whoever receives it also receives the licence — and the upstream notices should travel with the sidecars they describe rather than staying behind in a repository the recipient may never see. The README goes along too, since the archive is the only thing someone downloading a release actually has.
1 parent 33e2843 commit 53e000e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Makefile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ lint:
3232
release: sidecar
3333
go build -ldflags "$(LDFLAGS)" -o $(DIST)/$(BINARY) ./cmd/devicedeck
3434
cp sidecar/.build/release/devicedeck-hid sidecar/.build/release/devicedeck-video $(DIST)/
35+
# The archive is a distribution, so it carries the terms with it:
36+
# Apache-2.0 asks that recipients get the licence, and the upstream
37+
# notices travel with the sidecars they describe.
38+
cp LICENSE ATTRIBUTION.md README.md $(DIST)/
3539
cd dist && tar czf $(notdir $(DIST)).tar.gz $(notdir $(DIST))
3640
@echo "packaged $(DIST).tar.gz"
3741

0 commit comments

Comments
 (0)