Validate LIBGIT2 args are set correctly
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This commit is contained in:
parent
657f80bf6c
commit
fcb62eedc7
|
@ -27,6 +27,8 @@ jobs:
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-go-
|
${{ runner.os }}-go-
|
||||||
|
- name: Verify
|
||||||
|
run: make verify
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make test
|
run: make test
|
||||||
- name: Setup Kubernetes
|
- name: Setup Kubernetes
|
||||||
|
@ -38,8 +40,6 @@ jobs:
|
||||||
uses: fluxcd/pkg/actions/kustomize@main
|
uses: fluxcd/pkg/actions/kustomize@main
|
||||||
- name: Setup Helm
|
- name: Setup Helm
|
||||||
uses: fluxcd/pkg/actions/helm@main
|
uses: fluxcd/pkg/actions/helm@main
|
||||||
- name: Verify
|
|
||||||
run: make verify
|
|
||||||
- name: Run E2E tests
|
- name: Run E2E tests
|
||||||
env:
|
env:
|
||||||
CREATE_CLUSTER: false
|
CREATE_CLUSTER: false
|
||||||
|
|
|
@ -12,7 +12,7 @@ https://github.com/libssh2/libssh2/
|
||||||
|
|
||||||
No changes were made to its original source code.
|
No changes were made to its original source code.
|
||||||
|
|
||||||
Copyright notice (https://raw.githubusercontent.com/libssh2/libssh2/main/COPYING):
|
Copyright notice (https://raw.githubusercontent.com/libssh2/libssh2/master/COPYING):
|
||||||
|
|
||||||
/* Copyright (c) 2004-2007 Sara Golemon <sarag@libssh2.org>
|
/* Copyright (c) 2004-2007 Sara Golemon <sarag@libssh2.org>
|
||||||
* Copyright (c) 2005,2006 Mikhail Gusarov <dottedmag@dottedmag.net>
|
* Copyright (c) 2005,2006 Mikhail Gusarov <dottedmag@dottedmag.net>
|
||||||
|
@ -477,30 +477,35 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
The regex library (deps/regex/) is licensed under the GNU LGPL
|
The bundled PCRE implementation (deps/pcre/) is licensed under the BSD
|
||||||
(available at the end of this file).
|
license.
|
||||||
|
|
||||||
Definitions for data structures and routines for the regular
|
Redistribution and use in source and binary forms, with or without
|
||||||
expression library.
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
Copyright (C) 1985,1989-93,1995-98,2000,2001,2002,2003,2005,2006,2008
|
* Redistributions of source code must retain the above copyright notice,
|
||||||
Free Software Foundation, Inc.
|
this list of conditions and the following disclaimer.
|
||||||
This file is part of the GNU C Library.
|
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
* Redistributions in binary form must reproduce the above copyright
|
||||||
modify it under the terms of the GNU Lesser General Public
|
notice, this list of conditions and the following disclaimer in the
|
||||||
License as published by the Free Software Foundation; either
|
documentation and/or other materials provided with the distribution.
|
||||||
version 2.1 of the License, or (at your option) any later version.
|
|
||||||
|
|
||||||
The GNU C Library is distributed in the hope that it will be useful,
|
* Neither the name of the University of Cambridge nor the name of Google
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Inc. nor the names of their contributors may be used to endorse or
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
promote products derived from this software without specific prior
|
||||||
Lesser General Public License for more details.
|
written permission.
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
License along with the GNU C Library; if not, write to the Free
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
02110-1301 USA.
|
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||||
|
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||||
|
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||||
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||||
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||||
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ ARG BASE_VARIANT=alpine
|
||||||
ARG GO_VERSION=1.17
|
ARG GO_VERSION=1.17
|
||||||
ARG XX_VERSION=1.1.0
|
ARG XX_VERSION=1.1.0
|
||||||
|
|
||||||
ARG LIBGIT2_IMG
|
ARG LIBGIT2_IMG=ghcr.io/fluxcd/golang-with-libgit2
|
||||||
ARG LIBGIT2_TAG
|
ARG LIBGIT2_TAG=libgit2-1.1.1-6
|
||||||
|
|
||||||
FROM ${LIBGIT2_IMG}:${LIBGIT2_TAG} AS libgit2-libs
|
FROM ${LIBGIT2_IMG}:${LIBGIT2_TAG} AS libgit2-libs
|
||||||
|
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -201,6 +201,13 @@ e2e:
|
||||||
./hack/ci/e2e.sh
|
./hack/ci/e2e.sh
|
||||||
|
|
||||||
verify: update-attributions fmt vet manifests api-docs
|
verify: update-attributions fmt vet manifests api-docs
|
||||||
|
ifneq ($(shell grep -o 'LIBGIT2_IMG ?= \w.*' Makefile | cut -d ' ' -f 3):$(shell grep -o 'LIBGIT2_TAG ?= \w.*' Makefile | cut -d ' ' -f 3), \
|
||||||
|
$(shell grep -o "LIBGIT2_IMG=\w.*" Dockerfile | cut -d'=' -f2):$(shell grep -o "LIBGIT2_TAG=\w.*" Dockerfile | cut -d'=' -f2))
|
||||||
|
@{ \
|
||||||
|
echo "LIBGIT2_IMG and LIBGIT2_TAG must match in both Makefile and Dockerfile"; \
|
||||||
|
exit 1; \
|
||||||
|
}
|
||||||
|
endif
|
||||||
ifneq (, $(shell git status --porcelain --untracked-files=no))
|
ifneq (, $(shell git status --porcelain --untracked-files=no))
|
||||||
@{ \
|
@{ \
|
||||||
echo "working directory is dirty:"; \
|
echo "working directory is dirty:"; \
|
||||||
|
|
|
@ -171,7 +171,7 @@ Kubernetes meta/v1.Duration
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The timeout for download operations, defaults to 20s.</p>
|
<p>The timeout for download operations, defaults to 60s.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -343,7 +343,7 @@ Kubernetes meta/v1.Duration
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The timeout for remote Git operations like cloning, defaults to 20s.</p>
|
<p>The timeout for remote Git operations like cloning, defaults to 60s.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -1047,7 +1047,7 @@ Kubernetes meta/v1.Duration
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The timeout for download operations, defaults to 20s.</p>
|
<p>The timeout for download operations, defaults to 60s.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -1379,7 +1379,7 @@ Kubernetes meta/v1.Duration
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The timeout for remote Git operations like cloning, defaults to 20s.</p>
|
<p>The timeout for remote Git operations like cloning, defaults to 60s.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue