Skip to content

deploy: add lib/go.mod to the image build's dependency cache - #3898

Merged
dims merged 1 commit into
google:masterfrom
dims:fix-dockerfile-lib-module
Jun 21, 2026
Merged

dims merged 1 commit into
google:masterfrom
dims:fix-dockerfile-lib-module

Conversation

@dims

@dims dims commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

The container-image build fails at go mod download:

go: github.com/google/cadvisor/lib@v0.0.0 (replaced by ./lib): reading lib/go.mod: open /go/src/github.com/google/cadvisor/lib/go.mod: no such file or directory

The root go.mod replaces the lib submodule with ./lib, so the dependency-cache step needs lib/go.mod present before go mod download. The cmd submodule was already handled this way; do the same for lib.

This broke the v0.60.0 image publish.

The root go.mod replaces github.com/google/cadvisor/lib => ./lib, so the
dependency-cache `go mod download` needs lib/go.mod present. The cmd submodule
was handled but lib was not, so the container image build failed with
"reading lib/go.mod: no such file or directory".

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@dims
dims merged commit 407cb69 into google:master Jun 21, 2026
14 checks passed
dgalanberasaluce pushed a commit to dgalanberasaluce/infra-personal that referenced this pull request Jul 12, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/google/cadvisor](https://github.com/google/cadvisor) | minor | `0.56.2` → `v0.60.1` |

---

### Release Notes

<details>
<summary>google/cadvisor (ghcr.io/google/cadvisor)</summary>

### [`v0.60.1`](https://github.com/google/cadvisor/releases/tag/v0.60.1): cAdvisor v0.60.1

[Compare Source](google/cadvisor@v0.60.1...v0.60.1)

##### What's Changed

- cpuload/netlink: report the real error and skip the reader on cgroup v2 by [@&#8203;dims](https://github.com/dims) in [#&#8203;3896](google/cadvisor#3896)
- deploy: add lib/go.mod to the image build's dependency cache by [@&#8203;dims](https://github.com/dims) in [#&#8203;3898](google/cadvisor#3898)

**Full Changelog**: <google/cadvisor@v0.60.0...v0.60.1>

##### What's Changed

- cpuload/netlink: report the real error and skip the reader on cgroup v2 by [@&#8203;dims](https://github.com/dims) in [#&#8203;3896](google/cadvisor#3896)
- deploy: add lib/go.mod to the image build's dependency cache by [@&#8203;dims](https://github.com/dims) in [#&#8203;3898](google/cadvisor#3898)

**Full Changelog**: <google/cadvisor@v0.60.0...v0.60.1>

### [`v0.60.1`](https://github.com/google/cadvisor/releases/tag/v0.60.1): cAdvisor v0.60.1

[Compare Source](google/cadvisor@v0.57.0...v0.60.1)

##### What's Changed

- cpuload/netlink: report the real error and skip the reader on cgroup v2 by [@&#8203;dims](https://github.com/dims) in [#&#8203;3896](google/cadvisor#3896)
- deploy: add lib/go.mod to the image build's dependency cache by [@&#8203;dims](https://github.com/dims) in [#&#8203;3898](google/cadvisor#3898)

**Full Changelog**: <google/cadvisor@v0.60.0...v0.60.1>

##### What's Changed

- cpuload/netlink: report the real error and skip the reader on cgroup v2 by [@&#8203;dims](https://github.com/dims) in [#&#8203;3896](google/cadvisor#3896)
- deploy: add lib/go.mod to the image build's dependency cache by [@&#8203;dims](https://github.com/dims) in [#&#8203;3898](google/cadvisor#3898)

**Full Changelog**: <google/cadvisor@v0.60.0...v0.60.1>

### [`v0.57.0`](https://github.com/google/cadvisor/releases/tag/v0.57.0): cAdvisor v0.57.0

[Compare Source](google/cadvisor@v0.57.0...v0.57.0)

##### What's Changed

- integration: add more Docker container handler tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3817](google/cadvisor#3817)
- integration: add containerd container handler tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3818](google/cadvisor#3818)
- integration: add Prometheus metrics endpoint tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3819](google/cadvisor#3819)
- fix: support podman `volatile-containers.json` and/or `containers.json` by [@&#8203;sirno](https://github.com/sirno) in [#&#8203;3726](google/cadvisor#3726)
- proposed roadmap for cAdvisor by [@&#8203;SergeyKanzhelev](https://github.com/SergeyKanzhelev) in [#&#8203;3826](google/cadvisor#3826)
- remove log message when you can't read productName by [@&#8203;kannon92](https://github.com/kannon92) in [#&#8203;3840](google/cadvisor#3840)
- Refactor Github Action per b/485167538 by [@&#8203;google-admin](https://github.com/google-admin) in [#&#8203;3841](google/cadvisor#3841)
- fix crio deadlock in getting crio sandbox containers by [@&#8203;olyazavr](https://github.com/olyazavr) in [#&#8203;3838](google/cadvisor#3838)
- Add container\_creation\_time\_seconds (previously: container\_start\_time\_seconds); use runtime start time for container\_start\_time\_seconds (podman & docker) by [@&#8203;ultinous-akos](https://github.com/ultinous-akos) in [#&#8203;3808](google/cadvisor#3808)
- deps: github.com/moby/moby/client v0.4.0, moby/api v1.54.1, containerd/ttrpc v1.2.8 by [@&#8203;thaJeztah](https://github.com/thaJeztah) in [#&#8203;3863](google/cadvisor#3863)
- fix(build): update k8s-staging-test-infra image in integ tests by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3865](google/cadvisor#3865)
- feat(manager/container): add configurable initial splay and max jitter factors by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3854](google/cadvisor#3854)
- feat(manager): add constraint data in OOM events by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3861](google/cadvisor#3861)
- fix: add v-prefixed GHCR image tags for release consistency by [@&#8203;hwan515](https://github.com/hwan515) in [#&#8203;3857](google/cadvisor#3857)
- build(deps): bump the go\_modules group across 2 directories with 1 update by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;3855](google/cadvisor#3855)
- Expose cgroup v2 memory.events as Prometheus metrics by [@&#8203;sohankunkerkar](https://github.com/sohankunkerkar) in [#&#8203;3870](google/cadvisor#3870)
- deploy: bump base images to Alpine 3.23 by [@&#8203;dims](https://github.com/dims) in [#&#8203;3872](google/cadvisor#3872)

##### New Contributors

- [@&#8203;sirno](https://github.com/sirno) made their first contribution in [#&#8203;3726](google/cadvisor#3726)
- [@&#8203;SergeyKanzhelev](https://github.com/SergeyKanzhelev) made their first contribution in [#&#8203;3826](google/cadvisor#3826)
- [@&#8203;google-admin](https://github.com/google-admin) made their first contribution in [#&#8203;3841](google/cadvisor#3841)
- [@&#8203;olyazavr](https://github.com/olyazavr) made their first contribution in [#&#8203;3838](google/cadvisor#3838)
- [@&#8203;ultinous-akos](https://github.com/ultinous-akos) made their first contribution in [#&#8203;3808](google/cadvisor#3808)
- [@&#8203;hwan515](https://github.com/hwan515) made their first contribution in [#&#8203;3857](google/cadvisor#3857)
- [@&#8203;sohankunkerkar](https://github.com/sohankunkerkar) made their first contribution in [#&#8203;3870](google/cadvisor#3870)

**Full Changelog**: <google/cadvisor@v0.56.2...v0.57.0>

##### What's Changed

- integration: add more Docker container handler tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3817](google/cadvisor#3817)
- integration: add containerd container handler tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3818](google/cadvisor#3818)
- integration: add Prometheus metrics endpoint tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3819](google/cadvisor#3819)
- fix: support podman `volatile-containers.json` and/or `containers.json` by [@&#8203;sirno](https://github.com/sirno) in [#&#8203;3726](google/cadvisor#3726)
- proposed roadmap for cAdvisor by [@&#8203;SergeyKanzhelev](https://github.com/SergeyKanzhelev) in [#&#8203;3826](google/cadvisor#3826)
- remove log message when you can't read productName by [@&#8203;kannon92](https://github.com/kannon92) in [#&#8203;3840](google/cadvisor#3840)
- Refactor Github Action per b/485167538 by [@&#8203;google-admin](https://github.com/google-admin) in [#&#8203;3841](google/cadvisor#3841)
- fix crio deadlock in getting crio sandbox containers by [@&#8203;olyazavr](https://github.com/olyazavr) in [#&#8203;3838](google/cadvisor#3838)
- Add container\_creation\_time\_seconds (previously: container\_start\_time\_seconds); use runtime start time for container\_start\_time\_seconds (podman & docker) by [@&#8203;ultinous-akos](https://github.com/ultinous-akos) in [#&#8203;3808](google/cadvisor#3808)
- deps: github.com/moby/moby/client v0.4.0, moby/api v1.54.1, containerd/ttrpc v1.2.8 by [@&#8203;thaJeztah](https://github.com/thaJeztah) in [#&#8203;3863](google/cadvisor#3863)
- fix(build): update k8s-staging-test-infra image in integ tests by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3865](google/cadvisor#3865)
- feat(manager/container): add configurable initial splay and max jitter factors by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3854](google/cadvisor#3854)
- feat(manager): add constraint data in OOM events by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3861](google/cadvisor#3861)
- fix: add v-prefixed GHCR image tags for release consistency by [@&#8203;hwan515](https://github.com/hwan515) in [#&#8203;3857](google/cadvisor#3857)
- build(deps): bump the go\_modules group across 2 directories with 1 update by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;3855](google/cadvisor#3855)
- Expose cgroup v2 memory.events as Prometheus metrics by [@&#8203;sohankunkerkar](https://github.com/sohankunkerkar) in [#&#8203;3870](google/cadvisor#3870)
- deploy: bump base images to Alpine 3.23 by [@&#8203;dims](https://github.com/dims) in [#&#8203;3872](google/cadvisor#3872)

##### New Contributors

- [@&#8203;sirno](https://github.com/sirno) made their first contribution in [#&#8203;3726](google/cadvisor#3726)
- [@&#8203;SergeyKanzhelev](https://github.com/SergeyKanzhelev) made their first contribution in [#&#8203;3826](google/cadvisor#3826)
- [@&#8203;google-admin](https://github.com/google-admin) made their first contribution in [#&#8203;3841](google/cadvisor#3841)
- [@&#8203;olyazavr](https://github.com/olyazavr) made their first contribution in [#&#8203;3838](google/cadvisor#3838)
- [@&#8203;ultinous-akos](https://github.com/ultinous-akos) made their first contribution in [#&#8203;3808](google/cadvisor#3808)
- [@&#8203;hwan515](https://github.com/hwan515) made their first contribution in [#&#8203;3857](google/cadvisor#3857)
- [@&#8203;sohankunkerkar](https://github.com/sohankunkerkar) made their first contribution in [#&#8203;3870](google/cadvisor#3870)

**Full Changelog**: <google/cadvisor@v0.56.2...v0.57.0>

### [`v0.57.0`](https://github.com/google/cadvisor/releases/tag/v0.57.0): cAdvisor v0.57.0

[Compare Source](google/cadvisor@v0.56.2...v0.57.0)

##### What's Changed

- integration: add more Docker container handler tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3817](google/cadvisor#3817)
- integration: add containerd container handler tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3818](google/cadvisor#3818)
- integration: add Prometheus metrics endpoint tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3819](google/cadvisor#3819)
- fix: support podman `volatile-containers.json` and/or `containers.json` by [@&#8203;sirno](https://github.com/sirno) in [#&#8203;3726](google/cadvisor#3726)
- proposed roadmap for cAdvisor by [@&#8203;SergeyKanzhelev](https://github.com/SergeyKanzhelev) in [#&#8203;3826](google/cadvisor#3826)
- remove log message when you can't read productName by [@&#8203;kannon92](https://github.com/kannon92) in [#&#8203;3840](google/cadvisor#3840)
- Refactor Github Action per b/485167538 by [@&#8203;google-admin](https://github.com/google-admin) in [#&#8203;3841](google/cadvisor#3841)
- fix crio deadlock in getting crio sandbox containers by [@&#8203;olyazavr](https://github.com/olyazavr) in [#&#8203;3838](google/cadvisor#3838)
- Add container\_creation\_time\_seconds (previously: container\_start\_time\_seconds); use runtime start time for container\_start\_time\_seconds (podman & docker) by [@&#8203;ultinous-akos](https://github.com/ultinous-akos) in [#&#8203;3808](google/cadvisor#3808)
- deps: github.com/moby/moby/client v0.4.0, moby/api v1.54.1, containerd/ttrpc v1.2.8 by [@&#8203;thaJeztah](https://github.com/thaJeztah) in [#&#8203;3863](google/cadvisor#3863)
- fix(build): update k8s-staging-test-infra image in integ tests by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3865](google/cadvisor#3865)
- feat(manager/container): add configurable initial splay and max jitter factors by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3854](google/cadvisor#3854)
- feat(manager): add constraint data in OOM events by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3861](google/cadvisor#3861)
- fix: add v-prefixed GHCR image tags for release consistency by [@&#8203;hwan515](https://github.com/hwan515) in [#&#8203;3857](google/cadvisor#3857)
- build(deps): bump the go\_modules group across 2 directories with 1 update by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;3855](google/cadvisor#3855)
- Expose cgroup v2 memory.events as Prometheus metrics by [@&#8203;sohankunkerkar](https://github.com/sohankunkerkar) in [#&#8203;3870](google/cadvisor#3870)
- deploy: bump base images to Alpine 3.23 by [@&#8203;dims](https://github.com/dims) in [#&#8203;3872](google/cadvisor#3872)

##### New Contributors

- [@&#8203;sirno](https://github.com/sirno) made their first contribution in [#&#8203;3726](google/cadvisor#3726)
- [@&#8203;SergeyKanzhelev](https://github.com/SergeyKanzhelev) made their first contribution in [#&#8203;3826](google/cadvisor#3826)
- [@&#8203;google-admin](https://github.com/google-admin) made their first contribution in [#&#8203;3841](google/cadvisor#3841)
- [@&#8203;olyazavr](https://github.com/olyazavr) made their first contribution in [#&#8203;3838](google/cadvisor#3838)
- [@&#8203;ultinous-akos](https://github.com/ultinous-akos) made their first contribution in [#&#8203;3808](google/cadvisor#3808)
- [@&#8203;hwan515](https://github.com/hwan515) made their first contribution in [#&#8203;3857](google/cadvisor#3857)
- [@&#8203;sohankunkerkar](https://github.com/sohankunkerkar) made their first contribution in [#&#8203;3870](google/cadvisor#3870)

**Full Changelog**: <google/cadvisor@v0.56.2...v0.57.0>

##### What's Changed

- integration: add more Docker container handler tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3817](google/cadvisor#3817)
- integration: add containerd container handler tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3818](google/cadvisor#3818)
- integration: add Prometheus metrics endpoint tests by [@&#8203;dims](https://github.com/dims) in [#&#8203;3819](google/cadvisor#3819)
- fix: support podman `volatile-containers.json` and/or `containers.json` by [@&#8203;sirno](https://github.com/sirno) in [#&#8203;3726](google/cadvisor#3726)
- proposed roadmap for cAdvisor by [@&#8203;SergeyKanzhelev](https://github.com/SergeyKanzhelev) in [#&#8203;3826](google/cadvisor#3826)
- remove log message when you can't read productName by [@&#8203;kannon92](https://github.com/kannon92) in [#&#8203;3840](google/cadvisor#3840)
- Refactor Github Action per b/485167538 by [@&#8203;google-admin](https://github.com/google-admin) in [#&#8203;3841](google/cadvisor#3841)
- fix crio deadlock in getting crio sandbox containers by [@&#8203;olyazavr](https://github.com/olyazavr) in [#&#8203;3838](google/cadvisor#3838)
- Add container\_creation\_time\_seconds (previously: container\_start\_time\_seconds); use runtime start time for container\_start\_time\_seconds (podman & docker) by [@&#8203;ultinous-akos](https://github.com/ultinous-akos) in [#&#8203;3808](google/cadvisor#3808)
- deps: github.com/moby/moby/client v0.4.0, moby/api v1.54.1, containerd/ttrpc v1.2.8 by [@&#8203;thaJeztah](https://github.com/thaJeztah) in [#&#8203;3863](google/cadvisor#3863)
- fix(build): update k8s-staging-test-infra image in integ tests by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3865](google/cadvisor#3865)
- feat(manager/container): add configurable initial splay and max jitter factors by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3854](google/cadvisor#3854)
- feat(manager): add constraint data in OOM events by [@&#8203;sambhav-jain-16](https://github.com/sambhav-jain-16) in [#&#8203;3861](google/cadvisor#3861)
- fix: add v-prefixed GHCR image tags for release consistency by [@&#8203;hwan515](https://github.com/hwan515) in [#&#8203;3857](google/cadvisor#3857)
- build(deps): bump the go\_modules group across 2 directories with 1 update by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;3855](google/cadvisor#3855)
- Expose cgroup v2 memory.events as Prometheus metrics by [@&#8203;sohankunkerkar](https://github.com/sohankunkerkar) in [#&#8203;3870](google/cadvisor#3870)
- deploy: bump base images to Alpine 3.23 by [@&#8203;dims](https://github.com/dims) in [#&#8203;3872](google/cadvisor#3872)

##### New Contributors

- [@&#8203;sirno](https://github.com/sirno) made their first contribution in [#&#8203;3726](google/cadvisor#3726)
- [@&#8203;SergeyKanzhelev](https://github.com/SergeyKanzhelev) made their first contribution in [#&#8203;3826](google/cadvisor#3826)
- [@&#8203;google-admin](https://github.com/google-admin) made their first contribution in [#&#8203;3841](google/cadvisor#3841)
- [@&#8203;olyazavr](https://github.com/olyazavr) made their first contribution in [#&#8203;3838](google/cadvisor#3838)
- [@&#8203;ultinous-akos](https://github.com/ultinous-akos) made their first contribution in [#&#8203;3808](google/cadvisor#3808)
- [@&#8203;hwan515](https://github.com/hwan515) made their first contribution in [#&#8203;3857](google/cadvisor#3857)
- [@&#8203;sohankunkerkar](https://github.com/sohankunkerkar) made their first contribution in [#&#8203;3870](google/cadvisor#3870)

**Full Changelog**: <google/cadvisor@v0.56.2...v0.57.0>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My43My4yIiwidXBkYXRlZEluVmVyIjoiNDMuNzMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Reviewed-on: https://forgejo.internal/forgejo_admin/infra-personal/pulls/91
Co-authored-by: Renovate Bot <renovatebot@forgejo.internal>
Co-committed-by: Renovate Bot <renovatebot@forgejo.internal>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant