Skip to content
Evergreen Evergreen
Documentation

github.com/golang/protobuf is deprecated

Deprecated. The source gives no day. Replacement: google.golang.org/protobuf. Source: github.com/golang/protobuf v1.5.4 go.mod.

Check a version:

evergreen check pkg:golang/github.com/golang/protobuf

The latest github.com/golang/protobuf module declares: “Use the “google.golang.org/protobuf” module instead.”

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status Deprecated
Severity medium
Ecosystem go
Component pkg:golang/github.com/golang/protobuf
Affected versions vers:golang/*
Date from the source The source gives no day
Replacement google.golang.org/protobuf
Evidence last seen 2026-10-20
Reviewed 2026-10-20 by arminazimi
Review due 2027-04-18 (180 days after the last review)
Rule ID go.module.github.com.golang.protobuf.deprecated

Sources

Migration

Constraints

  • Keep go.mod and go.sum consistent: after the change no package should still require github.com/golang/protobuf, directly or through a replace directive.
  • Check google.golang.org/protobuf for API differences before switching; it may not be a drop-in replacement for every github.com/golang/protobuf call.

Steps

  1. Replace the deprecated module. Replace the github.com/golang/protobuf requirement with google.golang.org/protobuf (go get google.golang.org/protobuf@latest), then run go mod tidy.
  2. Migrate imports and calls. Update imports and calls of github.com/golang/protobuf in the reported files to google.golang.org/protobuf.

Verification

  • go build ./... && go test ./...: Build and test every package without the deprecated module.
  • go mod tidy && git diff --exit-code go.mod go.sum: Confirm go.mod and go.sum are tidy after the replacement.

Detected by

The go detector. See Detectors and Compatibility.

Same ecosystem

Data

This page is generated from registry/go.json, rule go.module.github.com.golang.protobuf.deprecated, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated