Update things.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM debian:13.1-slim
|
FROM debian:13.2-slim
|
||||||
|
|
||||||
COPY . /src
|
COPY . /src
|
||||||
RUN for file in $(find /src -type f -name "*.sh"); do chmod +x $file; done
|
RUN for file in $(find /src -type f -name "*.sh"); do chmod +x $file; done
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
gofumpt_version="0.9.0"
|
gofumpt_version="0.9.2"
|
||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
go_version=1.25.1
|
go_version=1.25.4
|
||||||
|
|
||||||
# shellcheck disable=SC2086,SC2046,SC2164
|
# shellcheck disable=SC2086,SC2046,SC2164
|
||||||
cd $(dirname ${BASH_SOURCE[0]})
|
cd $(dirname ${BASH_SOURCE[0]})
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# Line above disables shellcheck linters:
|
# Line above disables shellcheck linters:
|
||||||
# * SC2154 - variable referenced but not assigned (false positive, assigned when sourced arch.sh).
|
# * SC2154 - variable referenced but not assigned (false positive, assigned when sourced arch.sh).
|
||||||
|
|
||||||
golangci_lint_version=2.4.0
|
golangci_lint_version=2.6.1
|
||||||
|
|
||||||
# shellcheck disable=SC2086,SC2046,SC2164
|
# shellcheck disable=SC2086,SC2046,SC2164
|
||||||
cd "$(dirname ${BASH_SOURCE[0]})"
|
cd "$(dirname ${BASH_SOURCE[0]})"
|
||||||
|
|||||||
@@ -1,14 +1,32 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mockery_version=v1.1.2
|
||||||
mockery_v2_version=2.53.4
|
mockery_v2_version=2.53.4
|
||||||
|
mockery_v3_version=3.5.5
|
||||||
|
|
||||||
|
base_arch=$(uname -m)
|
||||||
|
arch=$( [ "$base_arch" = "aarch64" ] && echo "arm64" || echo "x86_64" )
|
||||||
|
|
||||||
cd /tmp || exit 1
|
cd /tmp || exit 1
|
||||||
|
|
||||||
|
# mockery v1 we build from source
|
||||||
|
git clone https://github.com/vektra/mockery
|
||||||
|
cd mockery || exit 1
|
||||||
|
git checkout "${mockery_version}"
|
||||||
|
go build -o /usr/local/bin/mockery ./cmd/mockery/
|
||||||
|
|
||||||
# mockery v2 we download from releases page
|
# mockery v2 we download from releases page
|
||||||
arch=$(uname -m)
|
|
||||||
download_url="https://github.com/vektra/mockery/releases/download/v${mockery_v2_version}/mockery_${mockery_v2_version}_Linux_${arch}.tar.gz"
|
download_url="https://github.com/vektra/mockery/releases/download/v${mockery_v2_version}/mockery_${mockery_v2_version}_Linux_${arch}.tar.gz"
|
||||||
curl -L ${download_url} -o "/tmp/mockery_${arch}.tar.gz"
|
curl -L "${download_url}" -o "/tmp/mockery_${arch}.tar.gz"
|
||||||
mkdir /tmp/mockery_v2
|
mkdir /tmp/mockery_v2
|
||||||
tar xf "/tmp/mockery_${arch}.tar.gz" -C /tmp/mockery_v2
|
tar xf "/tmp/mockery_${arch}.tar.gz" -C /tmp/mockery_v2
|
||||||
mv /tmp/mockery_v2/mockery /usr/local/bin/mockery_v2
|
mv /tmp/mockery_v2/mockery /usr/local/bin/mockery_v2
|
||||||
rm -rf "/tmp/mockery_$(uname -m).tar.gz" /tmp/mockery*
|
rm -rf "/tmp/mockery_$(uname -m).tar.gz" /tmp/mockery*
|
||||||
|
|
||||||
|
# mockery v3 we download from releases page
|
||||||
|
download_url="https://github.com/vektra/mockery/releases/download/v${mockery_v3_version}/mockery_${mockery_v3_version}_Linux_${arch}.tar.gz"
|
||||||
|
curl -L "${download_url}" -o "/tmp/mockery_v3_${arch}.tar.gz"
|
||||||
|
mkdir /tmp/mockery_v3
|
||||||
|
tar xf "/tmp/mockery_v3_${arch}.tar.gz" -C /tmp/mockery_v3
|
||||||
|
mv /tmp/mockery_v3/mockery /usr/local/bin/mockery_v3
|
||||||
|
rm -rf "/tmp/mockery_v3_${arch}.tar.gz" /tmp/mockery*
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# Line above disables shellcheck linters:
|
# Line above disables shellcheck linters:
|
||||||
# * SC2154 - variable referenced but not assigned (false positive, assigned when sourced arch.sh).
|
# * SC2154 - variable referenced but not assigned (false positive, assigned when sourced arch.sh).
|
||||||
|
|
||||||
taskfile_version=3.44.1
|
taskfile_version=3.45.5
|
||||||
|
|
||||||
# shellcheck disable=SC2086,SC2046,SC2164
|
# shellcheck disable=SC2086,SC2046,SC2164
|
||||||
cd "$(dirname ${BASH_SOURCE[0]})"
|
cd "$(dirname ${BASH_SOURCE[0]})"
|
||||||
|
|||||||
Reference in New Issue
Block a user