Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Lack of go mod tidy causes downstream issues #327

@rdmoore

Description

@rdmoore

Version: v3.2.1

Problem

go.mod file includes google.golang.org/grpc/cmd/protoc-gen-go-grpc but does not need it. This causes an issue with go list when V3.2.1 is used in another repo.

Solution

run go mod tidy prior to release.

Details

Updating my repository to use google.golang.org/grpc@v1.40.0 caused a strange and unexpected error. My go.sum file ends up with a dependency on google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod

This causes an issue in my repo when running the following command:

go list google.golang.org/grpc/...

I think this is due to an issue with one of the Go commands - e.g., go mod tidy or go list. But after forking this repo and running go mod tidy the dependency to protoc-gen-go-grpc is removed from martian and then from my repo once I run go mod tidy there. And the go list command works again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions