Skip to content

Commit 3fc70ff

Browse files
authored
Merge pull request #574 from pjbgf/fix-push
Validate LIBGIT2 args are set correctly
2 parents 657f80b + fcb62ee commit 3fc70ff

File tree

5 files changed

+40
-28
lines changed

5 files changed

+40
-28
lines changed

.github/workflows/e2e.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
2828
restore-keys: |
2929
${{ runner.os }}-go-
30+
- name: Verify
31+
run: make verify
3032
- name: Run tests
3133
run: make test
3234
- name: Setup Kubernetes
@@ -38,8 +40,6 @@ jobs:
3840
uses: fluxcd/pkg/actions/kustomize@main
3941
- name: Setup Helm
4042
uses: fluxcd/pkg/actions/helm@main
41-
- name: Verify
42-
run: make verify
4343
- name: Run E2E tests
4444
env:
4545
CREATE_CLUSTER: false

ATTRIBUTIONS.md

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ https://github.com/libssh2/libssh2/
1212

1313
No changes were made to its original source code.
1414

15-
Copyright notice (https://raw.githubusercontent.com/libssh2/libssh2/main/COPYING):
15+
Copyright notice (https://raw.githubusercontent.com/libssh2/libssh2/master/COPYING):
1616

1717
/* Copyright (c) 2004-2007 Sara Golemon <[email protected]>
1818
* Copyright (c) 2005,2006 Mikhail Gusarov <[email protected]>
@@ -477,30 +477,35 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
477477

478478
----------------------------------------------------------------------
479479

480-
The regex library (deps/regex/) is licensed under the GNU LGPL
481-
(available at the end of this file).
480+
The bundled PCRE implementation (deps/pcre/) is licensed under the BSD
481+
license.
482482

483-
Definitions for data structures and routines for the regular
484-
expression library.
483+
Redistribution and use in source and binary forms, with or without
484+
modification, are permitted provided that the following conditions are met:
485485

486-
Copyright (C) 1985,1989-93,1995-98,2000,2001,2002,2003,2005,2006,2008
487-
Free Software Foundation, Inc.
488-
This file is part of the GNU C Library.
486+
* Redistributions of source code must retain the above copyright notice,
487+
this list of conditions and the following disclaimer.
489488

490-
The GNU C Library is free software; you can redistribute it and/or
491-
modify it under the terms of the GNU Lesser General Public
492-
License as published by the Free Software Foundation; either
493-
version 2.1 of the License, or (at your option) any later version.
489+
* Redistributions in binary form must reproduce the above copyright
490+
notice, this list of conditions and the following disclaimer in the
491+
documentation and/or other materials provided with the distribution.
494492

495-
The GNU C Library is distributed in the hope that it will be useful,
496-
but WITHOUT ANY WARRANTY; without even the implied warranty of
497-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
498-
Lesser General Public License for more details.
493+
* Neither the name of the University of Cambridge nor the name of Google
494+
Inc. nor the names of their contributors may be used to endorse or
495+
promote products derived from this software without specific prior
496+
written permission.
499497

500-
You should have received a copy of the GNU Lesser General Public
501-
License along with the GNU C Library; if not, write to the Free
502-
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
503-
02110-1301 USA.
498+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
499+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
500+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
501+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
502+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
503+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
504+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
505+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
506+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
507+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
508+
POSSIBILITY OF SUCH DAMAGE.
504509

505510
----------------------------------------------------------------------
506511

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ ARG BASE_VARIANT=alpine
22
ARG GO_VERSION=1.17
33
ARG XX_VERSION=1.1.0
44

5-
ARG LIBGIT2_IMG
6-
ARG LIBGIT2_TAG
5+
ARG LIBGIT2_IMG=ghcr.io/fluxcd/golang-with-libgit2
6+
ARG LIBGIT2_TAG=libgit2-1.1.1-6
77

88
FROM ${LIBGIT2_IMG}:${LIBGIT2_TAG} AS libgit2-libs
99

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,13 @@ e2e:
201201
./hack/ci/e2e.sh
202202

203203
verify: update-attributions fmt vet manifests api-docs
204+
ifneq ($(shell grep -o 'LIBGIT2_IMG ?= \w.*' Makefile | cut -d ' ' -f 3):$(shell grep -o 'LIBGIT2_TAG ?= \w.*' Makefile | cut -d ' ' -f 3), \
205+
$(shell grep -o "LIBGIT2_IMG=\w.*" Dockerfile | cut -d'=' -f2):$(shell grep -o "LIBGIT2_TAG=\w.*" Dockerfile | cut -d'=' -f2))
206+
@{ \
207+
echo "LIBGIT2_IMG and LIBGIT2_TAG must match in both Makefile and Dockerfile"; \
208+
exit 1; \
209+
}
210+
endif
204211
ifneq (, $(shell git status --porcelain --untracked-files=no))
205212
@{ \
206213
echo "working directory is dirty:"; \

docs/api/source.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Kubernetes meta/v1.Duration
171171
</td>
172172
<td>
173173
<em>(Optional)</em>
174-
<p>The timeout for download operations, defaults to 20s.</p>
174+
<p>The timeout for download operations, defaults to 60s.</p>
175175
</td>
176176
</tr>
177177
<tr>
@@ -343,7 +343,7 @@ Kubernetes meta/v1.Duration
343343
</td>
344344
<td>
345345
<em>(Optional)</em>
346-
<p>The timeout for remote Git operations like cloning, defaults to 20s.</p>
346+
<p>The timeout for remote Git operations like cloning, defaults to 60s.</p>
347347
</td>
348348
</tr>
349349
<tr>
@@ -1047,7 +1047,7 @@ Kubernetes meta/v1.Duration
10471047
</td>
10481048
<td>
10491049
<em>(Optional)</em>
1050-
<p>The timeout for download operations, defaults to 20s.</p>
1050+
<p>The timeout for download operations, defaults to 60s.</p>
10511051
</td>
10521052
</tr>
10531053
<tr>
@@ -1379,7 +1379,7 @@ Kubernetes meta/v1.Duration
13791379
</td>
13801380
<td>
13811381
<em>(Optional)</em>
1382-
<p>The timeout for remote Git operations like cloning, defaults to 20s.</p>
1382+
<p>The timeout for remote Git operations like cloning, defaults to 60s.</p>
13831383
</td>
13841384
</tr>
13851385
<tr>

0 commit comments

Comments
 (0)