We've already gotten to the point where we want to make it clear to users that a module they depend on has been deprecated (with the beta org repositories). It would be useful to be able to set this in the module buf.yaml file.
For reference, Go 1.17 released this as a first-class feature of the Go modules ecosystem: https://golang.org/doc/go1.17#go-command.
-- edit --
This changed to using the command line to deprecate and undeprecate repositories with buf beta registry repository [un]deprecate.
Shipped in #638