From 3a85e74d4f40b153c4aec65e0ad4313d172cfbe7 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Fri, 1 May 2026 10:34:32 +0200 Subject: [PATCH] chore: fail on hugo warns and remove redundant validation Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- .github/workflows/build.yml | 1 - Dockerfile | 21 ++++++++------------- docker-bake.hcl | 7 +------ 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d3ce160859..161fd2bdff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -80,7 +80,6 @@ jobs: - unused-media - test-go-redirects - dockerfile-lint - - path-warnings - validate-vendor steps: - diff --git a/Dockerfile b/Dockerfile index 23db074116..a2c96589c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,7 +50,14 @@ ARG HUGO_ENV="development" ARG DOCS_URL="https://docs.docker.com" ENV HUGO_CACHEDIR="/tmp/hugo_cache" RUN --mount=type=cache,target=/tmp/hugo_cache \ - hugo --gc --minify -e $HUGO_ENV -b $DOCS_URL + hugo \ + --gc \ + --minify \ + --panicOnWarning \ + --printPathWarnings \ + --printUnusedTemplates \ + -b $DOCS_URL \ + -e $HUGO_ENV RUN ./hack/flatten-and-resolve.js public # lint lints markdown files @@ -145,18 +152,6 @@ RUN apk add --no-cache fd ripgrep WORKDIR /test RUN --mount=type=bind,target=. ./hack/test/unused_media -# path-warnings checks for duplicate target paths -FROM build-base AS path-warnings -RUN hugo --printPathWarnings > ./path-warnings.txt -RUN <