Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation message to v1 and v1beta1 module #122

Closed
wants to merge 1 commit into from

Conversation

oliversun9
Copy link
Contributor

This PR adds deprecation message to v1 and v1beta1 module, so that the CLI command that deprecates a module can use v1 API.

Copy link

github-actions bot commented Jul 5, 2024

The latest Buf updates on your PR.

NameStatus
build✅ passed
lint❌ failed
format✅ passed
breaking✅ passed

@oliversun9
Copy link
Contributor Author

This is also one of the rare cases where buf lint fails, a fix should be up soon.

@@ -76,6 +76,15 @@ message Module {
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 250
];
// The message of deprecating the module. Typically a message redirecting readers
// to the module that should be used instead.
string deprecation_message = 11 [(buf.validate.field).string.max_len = 255];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We did not bring this over on purpose, thus should be dropped.

@oliversun9 oliversun9 closed this Jul 8, 2024
@nicksnyder nicksnyder deleted the osun/deprecation-message branch July 16, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants