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

Commit de644bc

Browse files
committed
Downgrade to libgit2 1.1 and git2go v31
In an attempt to get a working set of dependecies for both the source-controller _and_ the image-automation-controller, as the latter mysterically fails. Signed-off-by: Hidde Beydals <hello@hidde.co>
1 parent 8ff53fc commit de644bc

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
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 ?= v32.0.4
8+
GIT2GO_TAG ?= v31.6.1
99

1010
.PHONY: build
1111
build:

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ while testing these against the git2go code before releasing the image.
3737
- [ ] `libgit2-1.1` depends on `libmdtls12` which [does not provide support for ED25519 (yet)][mbedtls-ed25519].
3838
- [ ] In some observations, a mix of mbedTLS and OpenSSL linking seemed to happen, making it harder to determine what
3939
C-dependency was the cause of a malfunction.
40+
- [ ] The `1.2` release of `libgit2` in combination with `git2go/v32` does not seem to work properly:
41+
- [ ] [libgit2/git2go#834](https://github.com/libgit2/git2go/issues/834)
42+
- [ ] [libgit2/git2go#836](https://github.com/libgit2/git2go/issues/836)
43+
- [ ] [libgit2/git2go#837](https://github.com/libgit2/git2go/issues/837)
4044

4145
## Usage
4246

hack/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ FLAGS ?=
33

44
INSTALL_PREFIX ?= /usr
55
INSTALL_LIBDIR ?= $(INSTALL_PREFIX)/lib
6+
USE_HTTPS ?= OpenSSL
7+
USE_SSH ?= ON
68

7-
LIBGIT2_VERSION ?= 1.2.0
9+
LIBGIT2_VERSION ?= 1.1.1
810
# Overwritten to a specific version by default for git2go support
911
# Ref: https://github.com/libgit2/git2go/issues/834
10-
LIBGIT2_REVISION ?= 109b4c887ffb63962c7017a66fc4a1f48becb48e
12+
LIBGIT2_REVISION ?=
1113

1214
ifeq ($(LIBGIT2_REVISION),)
1315
LIBGIT2_DOWNLOAD_URL ?= https://github.com/libgit2/libgit2/archive/refs/tags/v$(LIBGIT2_VERSION).tar.gz
@@ -34,8 +36,8 @@ $(INSTALL_LIBDIR)/libgit2.so.$(LIBGIT2_VERSION):
3436
-DUSE_BUNDLED_ZLIB:BOOL=OFF \
3537
-DUSE_HTTP_PARSER:STRING=builtin \
3638
-DREGEX_BACKEND:STRING=builtin \
37-
-DUSE_HTTPS:STRING=OpenSSL \
38-
-DUSE_SSH:BOOL=ON \
39+
-DUSE_HTTPS:STRING=$(USE_HTTPS) \
40+
-DUSE_SSH:BOOL=$(USE_SSH) \
3941
$(FLAGS) \
4042
&& cmake --build $$SETUP_LIBGIT2_TMP_DIR/build --target install \
4143
&& rm -rf $$SETUP_LIBGIT2_TMP_DIR

0 commit comments

Comments
 (0)