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

cli: Add extension_dependencies metadata #468

Merged
merged 24 commits into from
Oct 20, 2023

Conversation

EvanHStanton
Copy link
Contributor

No description provided.

@aws-amplify-us-east-1
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-468.dwcnpr7p8u1tw.amplifyapp.com

@EvanHStanton EvanHStanton changed the title Update publish.rs cli: Add extension_dependencies metadata Oct 4, 2023
@EvanHStanton EvanHStanton marked this pull request as ready for review October 20, 2023 13:11
Copy link
Contributor

@ianstanton ianstanton left a comment

Choose a reason for hiding this comment

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

@EvanHStanton Awesome work, this looks good! Please see the two follow-up comments I left in the review:

  • Extension dependencies should be automatically read from the control file
  • Registry side of this PR

Comment on lines +446 to +448
// TODO: If extension_dependencies is none, check for control file and fetch 'requires' field (similar to below)
// example: https://github.com/paradedb/paradedb/blob/9a0b1601a9c7026e5c89eef51a422b9d284b3058/pg_search/pg_search.control#L6C1-L6C9

Copy link
Contributor

Choose a reason for hiding this comment

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

@EvanHStanton as a follow-up, we'll want to pull the dependency information from the control file if it exists. The information will then be pulled automatically and we won't need to set extension_dependencies in our toml unless absolutely necessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

You'll want to add a test for this as well

@@ -64,6 +66,7 @@ pub struct Category {
pub struct PublishSettings {
name: String,
extension_name: Option<String>,
extension_dependencies: Option<Vec<String>>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Be sure to follow up with the registry side of this PR, so the registry can accept this new value

@EvanHStanton EvanHStanton merged commit cc2311e into main Oct 20, 2023
4 checks passed
@EvanHStanton EvanHStanton deleted the cli_meta_extension_dependencies branch October 20, 2023 21: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.

2 participants