-
Notifications
You must be signed in to change notification settings - Fork 35
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
Trunk Makefile builder #265
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
@@ -28,7 +28,7 @@ pub struct InstallCommand { | |||
} | |||
|
|||
#[derive(thiserror::Error, Debug)] | |||
pub enum PgxInstallError { | |||
pub enum InstallError { |
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.
In this file we make two changes:
- handle pathed installs
- check for architecture at the level of the whole artifact instead of each file
@@ -1,36 +1,21 @@ | |||
use bollard::container::{ |
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.
In the PGX logic, we delete everything that is not reusable and move reusable parts into containers.rs. Then we use the reusable logic that is shared with C builder in this builder.
@@ -8,7 +8,7 @@ use std::path::{Path, PathBuf}; | |||
pub enum PackagedFile { | |||
ControlFile {}, | |||
SqlFile {}, | |||
SharedObject { architecture: Option<String> }, | |||
SharedObject {}, |
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.
we set architecture at the level of the whole package instead of each file
@@ -1,5 +1,7 @@ | |||
use super::SubCommand; | |||
use crate::commands::generic_build::build_generic; |
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.
In this file, we add a new type of build - C build
@@ -137,17 +127,15 @@ impl SubCommand for InstallCommand { | |||
tempfile.write_reader(gz)?; | |||
tempfile.rewind()?; | |||
let input = tempfile; | |||
install(input, extension_dir, package_lib_dir, bitcode_dir, sharedir).await?; | |||
install(input, package_lib_dir, sharedir).await?; |
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.
@@ -1,6 +1,6 @@ | |||
[package] | |||
name = "pg-trunk" | |||
version = "0.3.2" | |||
version = "0.4.0-alpha.1" |
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.
we have to republish packages since they are in a new format, so I don't want it as the default on cargo install for now
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.
Let's go! Awesome work @sjmiller609 🎉
* Add sample MessageQueue * Update runtime configs * Add sample OLAP * Add sample OLTP * Add sample MachineLearning * Add sample Standard * Bump crate
Refactored PGX builder to work in same was as C builder. In either case, the following procedure is performed: