Skip to content

Commit 5b38337

Browse files
committed
remove version package
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 480f3bb commit 5b38337

2 files changed

Lines changed: 2 additions & 38 deletions

File tree

Makefile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
# Set an output prefix, which is the local directory if not specified
1616
PREFIX?=$(shell pwd)
1717

18-
# Used to populate version variable in main package.
19-
VERSION=$(shell git describe --match 'v[0-9]*' --dirty='.m' --always)
20-
21-
GO_LDFLAGS=-ldflags "-X `go list -mod=vendor ./version`.Version=$(VERSION)"
22-
2318
PKG=github.com/containerd/continuity
2419

2520
PACKAGES=$(shell go list -mod=vendor ./... | grep -v /vendor/)
@@ -41,13 +36,9 @@ all: AUTHORS clean lint build test binaries
4136
AUTHORS: .mailmap .git/HEAD
4237
git log --format='%aN <%aE>' | sort -fu > $@
4338

44-
# This only needs to be generated by hand when cutting full releases.
45-
version/version.go:
46-
./version/version.sh > $@
47-
48-
${PREFIX}/bin/continuity: version/version.go $(shell find . -type f -name '*.go')
39+
${PREFIX}/bin/continuity:
4940
@echo "+ $@"
50-
@go build -mod=vendor -o $@ ${GO_LDFLAGS} ${GO_GCFLAGS} ./cmd/continuity
41+
@go build -mod=vendor -o $@ ${GO_GCFLAGS} ./cmd/continuity
5142

5243
generate:
5344
go generate -mod=vendor $(PACKAGES)

version/version.go

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)