watchtower
watchtower copied to clipboard
chore(deps): bump go/stdlib to v1.23.x and update go modules
What this PR Contributes
This pull request upgrades the Go environment to version 1.23 and updates the module dependencies to their latest versions in go.mod. Additionally, it refactors code to align with recent API changes in Docker and other related modules, improving maintainability and compatibility with current libraries.
Changes Summary
- Go Version Upgrade: Upgraded
go.modto Go 1.23. - Module Updates: Updated all dependencies to their latest stable versions.
- Refactoring for Compatibility:
- Updated
ContainerListOptionstocontainer.ListOptionsand refactored related Docker structs. - Replaced
types.ImageDeleteResponseItemwithimage.DeleteResponsefor compatibility. - Modified
ImagePullOptionsandContainerRemoveOptionsto reflect updated package paths.
- Updated
Issues Solved
- This PR enhances compatibility and security by updating outdated dependencies, addressing CVEs identified in the SBOM, and aligning with current API specifications.
Tests and Verification
All existing unit tests have been executed to verify that the updates and refactoring do not introduce regressions. No tests failed, confirming that the modifications are stable and align with the expected functionality.
Unit-Test output:
SUCCESS! -- 21 Passed | 0 Failed | 0 Pending | 0 Skipped
SUCCESS! -- 3 Passed | 0 Failed | 0 Pending | 0 Skipped
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
SUCCESS! -- 66 Passed | 0 Failed | 0 Pending | 0 Skipped
SUCCESS! -- 41 Passed | 0 Failed | 0 Pending | 0 Skipped
SUCCESS! -- 7 Passed | 0 Failed | 0 Pending | 0 Skipped
SUCCESS! -- 11 Passed | 0 Failed | 0 Pending | 1 Skipped
SUCCESS! -- 4 Passed | 0 Failed | 0 Pending | 3 Skipped
SUCCESS! -- 5 Passed | 0 Failed | 0 Pending | 0 Skipped
SUCCESS! -- 5 Passed | 0 Failed | 0 Pending | 0 Skipped
Documentation Updates
No major documentation updates are required, as the changes pertain primarily to internal struct names and module paths.