From 94c821b120308ecb75d35adf9a350328c805a2d8 Mon Sep 17 00:00:00 2001 From: sgfost Date: Thu, 14 Aug 2025 14:44:24 -0700 Subject: [PATCH] build: remove `hugo mod get` step since it is unecessary and causing problems - it will always cause deps in go.mod to be updated which breaks things. Hugo commands like build and serve will download whatever is defined in go.mod anyways --- .github/workflows/gh-pages.yml | 1 - Dockerfile | 1 - README.md | 1 - go.mod | 4 +++- go.sum | 4 ++++ 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index d36575b..d337d1e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -37,7 +37,6 @@ jobs: HUGO_ENV: "production" run: | npm install - hugo mod get hugo --minify --gc - name: Deploy to Pages diff --git a/Dockerfile b/Dockerfile index 2f5addf..7c366b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,6 @@ COPY . /src/ RUN git config --global --add safe.directory /src -RUN hugo mod get RUN npm install CMD ["server"] diff --git a/README.md b/README.md index 9d7bf2e..6c6f2d0 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,6 @@ If you don't have docker installed and don't mind installing things in your oper - Use hugo commands and npm to build/render the site. ```bash -% hugo mod get % npm install % hugo serve # dev server without drafts # OR diff --git a/go.mod b/go.mod index bad5fd0..827e547 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,6 @@ module github.com/openmodelingfoundation/openmodelingfoundation.github.io go 1.18 -require github.com/google/docsy v0.11.0 // indirect +require github.com/google/docsy v0.11.0 + +require github.com/google/docsy/dependencies v0.7.2 // indirect diff --git a/go.sum b/go.sum index 558b7c8..7d2f09f 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,8 @@ +github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= github.com/FortAwesome/Font-Awesome v0.0.0-20240716171331-37eff7fa00de/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= github.com/google/docsy v0.11.0 h1:QnV40cc28QwS++kP9qINtrIv4hlASruhC/K3FqkHAmM= github.com/google/docsy v0.11.0/go.mod h1:hGGW0OjNuG5ZbH5JRtALY3yvN8ybbEP/v2iaK4bwOUI= +github.com/google/docsy/dependencies v0.7.2 h1:+t5ufoADQAj4XneFphz4A+UU0ICAxmNaRHVWtMYXPSI= +github.com/google/docsy/dependencies v0.7.2/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4= +github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=