1
0
mirror of https://github.com/Jguer/yay.git synced 2026-04-17 11:41:01 +02:00
yay/ci.Dockerfile
Copilot b09f3de913
ci: update golangci-lint to v2.10.1 and bump Go to 1.26 (#2791)
* Initial plan

* ci: update golangci-lint to v2.10.1 and use go 1.26

Co-authored-by: Jguer <8071073+Jguer@users.noreply.github.com>

* fix false report lints

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Jguer <8071073+Jguer@users.noreply.github.com>
Co-authored-by: Jo Garnier <git@jguer.space>
2026-03-08 23:33:23 +01:00

20 lines
828 B
Docker

FROM quay.io/gmanka/archlinuxarm:base-devel
LABEL maintainer="Jguer,docker@jguer.space"
ENV GO111MODULE=on
WORKDIR /app
COPY go.mod .
# asciidoc, doxygen, meson needed for pacman-git
RUN set -eux; \
pacman-key --init; \
sed -i 's/^#DisableSandboxFilesystem/DisableSandboxFilesystem/' /etc/pacman.conf; \
sed -i 's/^#DisableSandboxSyscalls/DisableSandboxSyscalls/' /etc/pacman.conf; \
pacman -Syu --noconfirm --needed archlinux-keyring pacman go git gcc make base-devel sudo asciidoc doxygen meson; \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v2.10.1; \
go mod download; \
rm -rf /var/lib/pacman/sync/* /var/cache/pacman/* /tmp/* /var/tmp/*; \
rm -rf /usr/share/man/* /usr/share/doc/* || true; \
yes | pacman -Scc >/dev/null 2>&1 || true