{
  "schemaVersion": "ebb.rule.v1",
  "id": "go.module.github.com.cncf.udpa.go.deprecated",
  "ecosystem": "go",
  "purl": "pkg:golang/github.com/cncf/udpa/go",
  "affectedVersions": "vers:golang/*",
  "event": "deprecated",
  "severity": "medium",
  "title": "github.com/cncf/udpa/go is deprecated",
  "summary": "The latest github.com/cncf/udpa/go module declares: \"use github.com/cncf/xds/go instead.\"",
  "replacement": "github.com/cncf/xds/go",
  "sources": [
    {
      "title": "github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe go.mod",
      "url": "https://proxy.golang.org/github.com/cncf/udpa/go/@v/v0.0.0-20220112060539-c52dc94e7fbe.mod",
      "accessedAt": "2026-10-20"
    },
    {
      "title": "Go module deprecation reference",
      "url": "https://go.dev/ref/mod#go-mod-file-module-deprecation",
      "accessedAt": "2026-10-20"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-20",
    "reviewedAt": "2026-10-20",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep go.mod and go.sum consistent: after the change no package should still require github.com/cncf/udpa/go, directly or through a replace directive.",
      "Check github.com/cncf/xds/go for API differences before switching; it may not be a drop-in replacement for every github.com/cncf/udpa/go call."
    ],
    "steps": [
      {
        "id": "replace-module-dependency",
        "title": "Replace the deprecated module",
        "instructions": "Replace the github.com/cncf/udpa/go requirement with github.com/cncf/xds/go (`go get github.com/cncf/xds/go@latest`), then run `go mod tidy`.",
        "targets": "declaration"
      },
      {
        "id": "migrate-module-usages",
        "title": "Migrate imports and calls",
        "instructions": "Update imports and calls of github.com/cncf/udpa/go in the reported files to github.com/cncf/xds/go.",
        "targets": "usages"
      }
    ],
    "verification": [
      {
        "command": "go build ./... && go test ./...",
        "purpose": "Build and test every package without the deprecated module."
      },
      {
        "command": "go mod tidy && git diff --exit-code go.mod go.sum",
        "purpose": "Confirm go.mod and go.sum are tidy after the replacement."
      }
    ]
  }
}
