-
Notifications
You must be signed in to change notification settings - Fork 18
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
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
16fc9a8
Update publish.rs
48b3d5b
Update build.rs
78ea99a
Update pgrx.rs
4d0e0c8
Update generic_build.rs
8e3bbaf
Update containers.rs
845d2db
Update trunk_toml.rs
81b31d1
Update manifest.rs
2d49cba
Update install.rs
e153ee2
Update integration tests
156a186
Add btree_gin dockerfile and update intregration_tests.rs
8218fb2
Update integration_tests.rs
62a68e4
Update
2cdaea9
comment-out function
5f83499
Cleanup test file
ianstanton f648bfa
Merge branch 'main' of github.com:CoreDB-io/trunk into cli_meta_exten…
ianstanton 0a899ba
Revert change to pg_cron in contrib
ianstanton b3042b5
Fix gitignore skip in CLI workflow
ianstanton e496ef3
Bump crate
ianstanton 65db97c
Merge branch 'main' of github.com:CoreDB-io/trunk into cli_meta_exten…
ianstanton 1052625
Bump crate
ianstanton ebbdcb9
Update ln583 assertion
19e7b53
Fix assertion
ianstanton 337706a
Add TODO
ianstanton 38bfbf2
Remove unused Dockerfile.btree_gin
ianstanton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ pub struct PublishCommand { | |
name: Option<String>, | ||
#[arg(short = 'e', long = "extension_name")] | ||
extension_name: Option<String>, | ||
#[arg(short = 'x', long = "extension_dependencies")] | ||
extension_dependencies: Option<Vec<String>>, | ||
#[arg(short = 's', long = "preload_libraries")] | ||
preload_libraries: Option<Vec<String>>, | ||
#[arg(long = "version", short = 'v')] | ||
|
@@ -64,6 +66,7 @@ pub struct Category { | |
pub struct PublishSettings { | ||
name: String, | ||
extension_name: Option<String>, | ||
extension_dependencies: Option<Vec<String>>, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
preload_libraries: Option<Vec<String>>, | ||
version: String, | ||
file: Option<PathBuf>, | ||
|
@@ -103,6 +106,12 @@ impl PublishCommand { | |
&trunk_toml, | ||
); | ||
|
||
let extension_dependencies = cli_or_trunk_opt( | ||
&self.extension_dependencies, | ||
|toml| &toml.extension.extension_dependencies, | ||
&trunk_toml, | ||
); | ||
|
||
let preload_libraries = cli_or_trunk_opt( | ||
&self.preload_libraries, | ||
|toml| &toml.extension.preload_libraries, | ||
|
@@ -178,6 +187,7 @@ impl PublishCommand { | |
repository, | ||
name, | ||
extension_name, | ||
extension_dependencies, | ||
system_dependencies, | ||
categories, | ||
preload_libraries, | ||
|
@@ -339,6 +349,7 @@ impl SubCommand for PublishCommand { | |
let m = json!({ | ||
"name": publish_settings.name, | ||
"extension_name": publish_settings.extension_name, | ||
"extension_dependencies": publish_settings.extension_dependencies, | ||
"vers": publish_settings.version, | ||
"description": publish_settings.description, | ||
"documentation": publish_settings.documentation, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.There was a problem hiding this comment.
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