Skip to content

Update github.com/docker/docker dependency to v28.1.1#116

Merged
ycombinator merged 4 commits intoelastic:mainfrom
ycombinator:update-docker-v28.1.1
May 7, 2025
Merged

Update github.com/docker/docker dependency to v28.1.1#116
ycombinator merged 4 commits intoelastic:mainfrom
ycombinator:update-docker-v28.1.1

Conversation

@ycombinator
Copy link
Copy Markdown
Contributor

@ycombinator ycombinator commented May 1, 2025

Updates the github.com/docker/docker module dependency to v28.1.1 and does a bit of related cleanup:

  • Replaces the use of types.EventsOptions with events.ListOptions as the former has been removed from the Docker API in the new version.
  • Replaces the use of several deprecated types in the Docker API as they are slated for removal in a future version:
    • types.Container -> container.Summary
    • types.ContainerJSON -> container.InspectResponse
    • types.SummaryNetworkSettings -> container.NetworkSettingsSummary
  • Removes redundant type usages

Also updates Go version to 1.24.1 as CI was failing without that (see #116 (comment)).

@ycombinator ycombinator requested a review from a team as a code owner May 1, 2025 15:47
@ycombinator ycombinator added Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels May 1, 2025
@ycombinator ycombinator requested review from a team, michalpristas and pchila and removed request for a team May 1, 2025 15:47
Copy link
Copy Markdown

@pkoutsovasilis pkoutsovasilis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

install_go_dependencies() {
    local install_packages=(
            "github.com/magefile/mage"
            "github.com/elastic/go-licenser"
            "golang.org/x/tools/cmd/goimports"
            "github.com/jstemmer/go-junit-report"
            "gotest.tools/gotestsum"
    )
    for pkg in "${install_packages[@]}"; do
        go install "${pkg}@latest"
    done
}

this part of the code is causing us issues 🤔

@ycombinator
Copy link
Copy Markdown
Contributor Author

install_go_dependencies() {
    local install_packages=(
            "github.com/magefile/mage"
            "github.com/elastic/go-licenser"
            "golang.org/x/tools/cmd/goimports"
            "github.com/jstemmer/go-junit-report"
            "gotest.tools/gotestsum"
    )
    for pkg in "${install_packages[@]}"; do
        go install "${pkg}@latest"
    done
}

this part of the code is causing us issues 🤔

Yeah, specifically, the issue is with updating golang.org/x/tools/cmd/goimports to latest:

go: golang.org/x/tools/cmd/goimports@latest: golang.org/x/tools@v0.32.0 requires go >= 1.23.0 (running go 1.22.7; GOTOOLCHAIN=local)

I guess we will need to bump the repo's Go version to 1.23.0 or later first.

@ycombinator ycombinator enabled auto-merge (squash) May 7, 2025 18:01
@ycombinator ycombinator requested a review from pkoutsovasilis May 7, 2025 18:02
@ycombinator ycombinator merged commit a76a44c into elastic:main May 7, 2025
2 of 3 checks passed
@ycombinator ycombinator deleted the update-docker-v28.1.1 branch May 7, 2025 18:20
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants