Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit a926b57

Browse files
authored
Merge pull request #8 from pjbgf/revert-versions
2 parents e1afa3f + cbe6e79 commit a926b57

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.dockerignore

-2
This file was deleted.

.github/workflows/build.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ jobs:
2323
- 5000:5000
2424
steps:
2525
- name: Checkout
26-
id: checkout
2726
uses: actions/checkout@v2
27+
- name: Unshallow
28+
run: git fetch --prune --unshallow
2829
- name: Set up QEMU
2930
id: qemu
3031
uses: docker/setup-qemu-action@v1
@@ -54,6 +55,7 @@ jobs:
5455
key: ${{ runner.os }}-buildx-ghcache-${{ github.sha }}
5556
restore-keys: |
5657
${{ runner.os }}-buildx-ghcache-
58+
- run: cat ./hack/Makefile
5759
- name: Build candidate image
5860
id: build_candidate
5961
uses: docker/build-push-action@v2

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM scratch
22

3-
COPY hack/Makefile Makefile
3+
COPY ./hack/Makefile Makefile

Dockerfile.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This Dockerfile tests the hack/Makefile output against git2go.
22
ARG BASE_VARIANT=bullseye
3-
ARG GO_VERSION=1.16.8
3+
ARG GO_VERSION=1.17.5
44
ARG XX_VERSION=1.0.0-rc.2
55

66
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
@@ -12,7 +12,7 @@ FROM gostable AS go-linux
1212
FROM go-${TARGETOS} AS build-base-bullseye
1313

1414
COPY --from=xx / /
15-
COPY hack/Makefile /libgit2/Makefile
15+
COPY ./hack/Makefile /libgit2/Makefile
1616

1717
RUN make -C /libgit2/ cmake
1818

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ STATIC_TEST_TAG := test
55
PLATFORMS ?= linux/amd64,linux/arm/v7,linux/arm64
66
BUILD_ARGS ?=
77

8-
GIT2GO_TAG ?= v33.0.1
8+
GIT2GO_TAG ?= v31.6.1
99

1010
.PHONY: build
1111
build:

hack/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ INSTALL_LIBDIR ?= $(INSTALL_PREFIX)/lib/$(shell xx-info triple)
1515
endif
1616
BUILD_TYPE ?= "RelWithDebInfo"
1717
FLAGS ?=
18-
USE_HTTPS ?= OFF
19-
USE_SSH ?= OFF
18+
USE_HTTPS ?= OpenSSL
19+
USE_SSH ?= ON
2020
USE_BUNDLED_ZLIB ?= OFF
2121
BUILD_SHARED_LIBS ?= ON
2222

2323
# Cmake version to be installed.
2424
CMAKE_VERSION ?= 3.21.3
2525

2626
# Libgit2 version to be compiled and installed.
27-
LIBGIT2_VERSION ?= 1.3.0
27+
LIBGIT2_VERSION ?= 1.1.1
2828
# In some scenarios libgit2 needs to be checked out to a specific commit.
2929
# This takes presidence over LIBGIT_VERSION if defined.
3030
# Ref: https://github.com/libgit2/git2go/issues/834
@@ -127,7 +127,7 @@ $(LIBGIT2):
127127
-DBUILD_CLAR:BOOL:BOOL=OFF \
128128
-DTHREADSAFE:BOOL=ON \
129129
-DBUILD_SHARED_LIBS:BOOL=$(BUILD_SHARED_LIBS) \
130-
-DUSE_BUNDLED_ZLIB:BOOL=OFF \
130+
-DUSE_BUNDLED_ZLIB:BOOL=$(USE_BUNDLED_ZLIB) \
131131
-DUSE_HTTP_PARSER:STRING=builtin \
132132
-DREGEX_BACKEND:STRING=builtin \
133133
-DUSE_HTTPS:STRING=$(USE_HTTPS) \

0 commit comments

Comments
 (0)