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

[COR-381] trunk publish #214

Merged
merged 5 commits into from
Apr 7, 2023
Merged

[COR-381] trunk publish #214

merged 5 commits into from
Apr 7, 2023

Conversation

ianstanton
Copy link
Member

@ianstanton ianstanton commented Apr 6, 2023

trunk publish allows for publishing postgres extensions to the trunk registry. If no file is provided, the CLI will look for a file in its working dir with format <extension_name>-<version>.tar.gz.
Example:

❯ trunk publish test_trunk --version 0.0.1 -f ./test_trunk-0.0.1.tar.gz --registry https://dev.server.com
Successfully published extension test_trunk version 0.0.1

@ianstanton ianstanton marked this pull request as ready for review April 7, 2023 15:14
Some(..) => {
// If file is specified, use it
let path = self.file.clone().unwrap();
let name = path.file_name().unwrap().to_str().unwrap().to_owned();
Copy link
Member Author

Choose a reason for hiding this comment

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

Wrestled with this for a bit... there's got to be a better way.

// Error if file is not found
let mut path = PathBuf::new();
let _ = &path.push(format!("./{}-{}.tar.gz", self.name, self.version));
let name = path.file_name().unwrap().to_str().unwrap().to_owned();
Copy link
Member Author

Choose a reason for hiding this comment

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

Same as above.

@ianstanton ianstanton merged commit d45c5b1 into main Apr 7, 2023
@ianstanton ianstanton deleted the cor-381 branch April 7, 2023 19:56
sjmiller609 added a commit that referenced this pull request Dec 5, 2023
* Handle schema: null on toggle

* Update tembo-operator/tests/integration_tests.rs

* Fix flakey test: functional_test_ha_upgrade_cnpg
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