Skip to content

fix(deps): migrate call sites to helm v4, mergo v1, glob v1, yaml.v3 APIs - #3603

Draft
levan-m wants to merge 3 commits into
renovate/major-go-dependenciesfrom
fix/pr-3490
Draft

levan-m wants to merge 3 commits into
renovate/major-go-dependenciesfrom
fix/pr-3490

Conversation

@levan-m

@levan-m levan-m commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Fixes compilation and test failures introduced by the major-version bumps in #3490 (renovate/major-go-dependencies).

Changes

  • mergo: rewrite module path github.com/imdario/mergo → dario.cat/mergo in go.mod and two import sites
  • gobwas/glob v1: Compile now returns *glob.Pattern instead of the glob.Glob interface; update three call sites
  • gopkg.in/yaml.v3: marshals with 4-space indent and indented sequences (unlike v2); update event-collection test expectation
  • helm v4:
    • chartutil split: Values/ReadValues/YAML() → pkg/chart/common; LoadChartfile → pkg/chart/v2/util
    • Wait bool → WaitStrategy kube.WaitStrategy (kube.StatusWatcherStrategy)
    • Configuration.Init no longer takes a log func
    • Run/RunWithContext return release.Releaser (interface); UninstallReleaseResponse.Release likewise
    • StatusUninstalled lives in helm.sh/helm/v4/pkg/release/common

Testing

  • go build ./... — clean
  • go test ./internal/controller/... ./cmd/yaml-mapper/... ./cmd/kubectl-datadog/... — all pass
  • go vet — clean

🤖 Generated with Claude Code

Update call sites broken by major-version bumps in renovate/major-go-dependencies:
- mergo: github.com/imdario/mergo → dario.cat/mergo
- gobwas/glob v1: Compile returns *glob.Pattern (not glob.Glob interface)
- gopkg.in/yaml.v3: 4-space indent; update test expectations
- helm v4: chartutil split across pkg/chart/common and pkg/chart/v2/util;
  Wait→WaitStrategy; Configuration.Init drops log arg; Run returns release.Releaser

Environment: Datadog workspace

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@datadog-prod-us1-6

This comment has been minimized.

levan-m and others added 2 commits October 14, 2026 12:08
test/e2e uses replace directives pointing to the local root module.
After the mergo module rename and helm/glob bumps in go.mod, the
test/e2e module graph changed and its go.sum needed refreshing.

Environment: Datadog workspace

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Co-authored-by: Levan Machablishvili <levan.machablishvili@datadoghq.com>
Remove helm/v3, imdario/mergo, evanphx/json-patch (non-v5),
hashicorp/errwrap, hashicorp/go-multierror, yaml.v2 entries.
Add helm/v4 and its new transitive deps (wazero, extism, observe-sdk,
fluxcd/cli-utils, ianlancetaylor/demangle).

Environment: Datadog workspace

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant