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 archive registry support for curated plugin #2797

Merged
merged 3 commits into from
Mar 6, 2024
Merged

Conversation

cyinma
Copy link
Member

@cyinma cyinma commented Mar 5, 2024

No description provided.

@cyinma cyinma requested a review from bufdev as a code owner March 5, 2024 19:41
@cyinma cyinma requested a review from mfridman March 5, 2024 19:43
@@ -232,9 +235,10 @@ message RegistryConfig {
MavenConfig maven_config = 3;
SwiftConfig swift_config = 4;
PythonConfig python_config = 5;
ArtifactConfig artifact_config = 6;
Copy link
Member

Choose a reason for hiding this comment

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

I could see this going both ways, but I was thinking this would be called archive_config.

However, I could see a world where we want to add an archive_config to a plugin to modify it's behavior within the archive registry (for example, propagating a plugin option), but not necessarily show that plugin as part of the bundled artifact feature.

I wonder if the config should be named archive_config and have an "include in bundled artifacts" option. This would allow us to set some plugins to true and retain the flexibility to have ad-hoc archive_config without affecting the bundled artifact feature.

cc @pkwarren @stefanvanburen if you have some thoughts let us know.

Copy link
Member

Choose a reason for hiding this comment

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

I would +1 on archive

Copy link
Member

Choose a reason for hiding this comment

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

yeah, archive makes sense to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

chatted with Mike, renamed this to archive and we can start from there

}
// Reserved for future remote registry types.
reserved 6 to 9;
reserved 7 to 9;
Copy link
Member

Choose a reason for hiding this comment

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

Just a point of order: this is sort of an abuse of the reserved keyword, reserved is really meant to say "these were previously used", outside of hyper-optimization theres no need to reserve these fields ahead of time.

Copy link
Member

Choose a reason for hiding this comment

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

We definitely abused the use of reserved here to group all current and future configurations together, rather than for performance. In hindsight, this was probably us trying to be overly clever.

Copy link
Member

Choose a reason for hiding this comment

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

You can still group them together in the source code, regardless of tag - tag is kind of irrelevant unless you're trying to save one byte (you're not)

@cyinma cyinma changed the title Add artifact registry support for curated plugin Add archive registry support for curated plugin Mar 5, 2024
@cyinma cyinma merged commit 421ed0a into main Mar 6, 2024
12 checks passed
@cyinma cyinma deleted the cyinma/artifact branch March 6, 2024 16:45
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.

4 participants