Skip to content

Commit

Permalink
build: Fix up hugo mod tidy (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson authored Aug 29, 2023
1 parent 4b5706a commit e4c0e9b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 25 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ repos:
language: system
files: "(.*\\.go|go.mod|go.sum|go.mk)$"
pass_filenames: false
- id: hugo-mod-tidy
name: hugo-mod-tidy
entry: bash -c "cd docs && hugo mod tidy"
language: system
files: "^docs/"
pass_filenames: false
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
Expand Down
2 changes: 1 addition & 1 deletion devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"gotestsum@latest",
"hadolint@latest",
"helm-docs@latest",
"hugo@0.116.1",
"hugo@0.117.0",
"kubebuilder@latest",
"kubectl@latest",
"kubernetes-controller-tools@latest",
Expand Down
44 changes: 22 additions & 22 deletions devbox.lock
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"version": "4.9.0"
},
"fluxcd@latest": {
"last_modified": "2023-07-23T03:35:12Z",
"resolved": "github:NixOS/nixpkgs/af8cd5ded7735ca1df1a1174864daab75feeb64a#fluxcd",
"last_modified": "2023-08-25T03:28:31Z",
"resolved": "github:NixOS/nixpkgs/1e44a037bbf4fcaba041436e65e87be88f3f495b#fluxcd",
"source": "devbox-search",
"version": "2.0.1"
"version": "2.1.0"
},
"ginkgo@latest": {
"last_modified": "2023-06-30T04:44:22Z",
Expand All @@ -56,10 +56,10 @@
"version": "2.41.0"
},
"github-cli@latest": {
"last_modified": "2023-05-14T19:13:12Z",
"resolved": "github:NixOS/nixpkgs/3007746b3f5bfcb49e102b517bca891822a41b31#github-cli",
"last_modified": "2023-02-24T09:01:09Z",
"resolved": "github:NixOS/nixpkgs/7d0ed7f2e5aea07ab22ccb338d27fbe347ed2f11#github-cli",
"source": "devbox-search",
"version": "2.29.0"
"version": "2.23.0"
},
"gnumake@latest": {
"last_modified": "2023-07-23T03:35:12Z",
Expand All @@ -74,10 +74,10 @@
"version": "4.9"
},
"go@latest": {
"last_modified": "2023-07-30T12:29:02Z",
"resolved": "github:NixOS/nixpkgs/3acb5c4264c490e7714d503c7166a3fde0c51324#go",
"last_modified": "2023-08-22T06:04:29Z",
"resolved": "github:NixOS/nixpkgs/9d757ec498666cc1dcc6f2be26db4fd3e1e9ab37#go_1_21",
"source": "devbox-search",
"version": "1.20.6"
"version": "1.21.0"
},
"gojq@latest": {
"last_modified": "2023-06-30T04:44:22Z",
Expand All @@ -86,10 +86,10 @@
"version": "0.12.13"
},
"golangci-lint@latest": {
"last_modified": "2023-06-30T04:44:22Z",
"resolved": "github:NixOS/nixpkgs/3c614fbc76fc152f3e1bc4b2263da6d90adf80fb#golangci-lint",
"last_modified": "2023-08-22T06:04:29Z",
"resolved": "github:NixOS/nixpkgs/9d757ec498666cc1dcc6f2be26db4fd3e1e9ab37#golangci-lint",
"source": "devbox-search",
"version": "1.53.3"
"version": "1.54.2"
},
"golines@latest": {
"last_modified": "2023-06-30T04:44:22Z",
Expand Down Expand Up @@ -127,11 +127,11 @@
"source": "devbox-search",
"version": "1.11.0"
},
"hugo@0.116.1": {
"last_modified": "2023-08-08T03:07:33Z",
"resolved": "github:NixOS/nixpkgs/844ffa82bbe2a2779c86ab3a72ff1b4176cec467#hugo",
"hugo@0.117.0": {
"last_modified": "2023-08-08T11:45:39Z",
"resolved": "github:NixOS/nixpkgs/4e6868b1aa3766ab1de169922bb3826143941973#hugo",
"source": "devbox-search",
"version": "0.116.1"
"version": "0.117.0"
},
"kind@latest": {
"last_modified": "2023-06-18T15:53:58Z",
Expand Down Expand Up @@ -164,10 +164,10 @@
"version": "3.12.2"
},
"kustomize@latest": {
"last_modified": "2023-06-30T04:44:22Z",
"resolved": "github:NixOS/nixpkgs/3c614fbc76fc152f3e1bc4b2263da6d90adf80fb#kustomize",
"last_modified": "2023-08-14T01:28:26Z",
"resolved": "github:NixOS/nixpkgs/81b970640e56a5c07a336d2c05018b0c9bf57a51#kustomize",
"source": "devbox-search",
"version": "5.1.0"
"version": "5.1.1"
},
"pre-commit@latest": {
"last_modified": "2023-06-30T04:44:22Z",
Expand All @@ -182,10 +182,10 @@
"version": "3.7.0"
},
"upx@latest": {
"last_modified": "2023-06-30T04:44:22Z",
"resolved": "github:NixOS/nixpkgs/3c614fbc76fc152f3e1bc4b2263da6d90adf80fb#upx",
"last_modified": "2023-08-14T01:28:26Z",
"resolved": "github:NixOS/nixpkgs/81b970640e56a5c07a336d2c05018b0c9bf57a51#upx",
"source": "devbox-search",
"version": "4.0.2"
"version": "4.1.0"
},
"yamale@latest": {
"last_modified": "2023-06-30T04:44:22Z",
Expand Down
4 changes: 2 additions & 2 deletions make/go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ mod-tidy: ## Run go mod tidy for all modules
ifneq ($(wildcard $(REPO_ROOT)/go.mod),)
mod-tidy: mod-tidy.root
endif
ifneq ($(words $(ALL_GO_SUBMODULES)),0)
mod-tidy: $(addprefix mod-tidy.,$(ALL_GO_SUBMODULES:/go.mod=))
ifneq ($(words $(GO_SUBMODULES_NO_DOCS)),0)
mod-tidy: $(addprefix mod-tidy.,$(GO_SUBMODULES_NO_DOCS:/go.mod=))
endif

.PHONY: mod-tidy.%
Expand Down

0 comments on commit e4c0e9b

Please sign in to comment.