watchtower icon indicating copy to clipboard operation
watchtower copied to clipboard

chore(deps): bump go/stdlib to v1.23.x and update go modules

Open nemezo opened this issue 1 year ago • 0 comments

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.mod to Go 1.23.
  • Module Updates: Updated all dependencies to their latest stable versions.
  • Refactoring for Compatibility:
    • Updated ContainerListOptions to container.ListOptions and refactored related Docker structs.
    • Replaced types.ImageDeleteResponseItem with image.DeleteResponse for compatibility.
    • Modified ImagePullOptions and ContainerRemoveOptions to reflect updated package paths.

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.

nemezo avatar Oct 31 '24 13:10 nemezo