File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,7 @@ override_dh_auto_build:
23
23
24
24
# Build the compose plugin
25
25
cd /go/src/github.com/docker/compose \
26
- && GO111MODULE=on go mod download \
27
- && mkdir -p /usr/libexec/docker/cli-plugins/ \
28
- && GO111MODULE=on \
29
- CGO_ENABLED=0 \
30
- go build \
31
- -trimpath \
32
- -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=$(COMPOSE_VERSION)" \
33
- -o "/usr/libexec/docker/cli-plugins/docker-compose" \
34
- ./cmd
26
+ && make VERSION=$(COMPOSE_VERSION) DESTDIR=/usr/libexec/docker/cli-plugins build
35
27
36
28
# Build the scan-plugin
37
29
# TODO change once we support scan-plugin on other architectures
Original file line number Diff line number Diff line change @@ -35,14 +35,7 @@ Docker Compose V1 ('docker-compose').
35
35
36
36
%build
37
37
pushd ${RPM_BUILD_DIR} /src/compose
38
- GO111MODULE=on go mod download
39
- GO111MODULE=on \
40
- CGO_ENABLED=0 \
41
- go build \
42
- -trimpath \
43
- -ldflags=" -s -w -X github.com/docker/compose/v2/internal.Version=%{_compose_version}" \
44
- -o " bin/docker-compose" \
45
- ./cmd
38
+ make VERSION=%{_compose_version } DESTDIR=./bin build
46
39
popd
47
40
48
41
%check
You can’t perform that action at this time.
0 commit comments