diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9b9276ba7..58e69bf20 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -507,6 +507,11 @@ jobs: os: macos-latest - rust-target: x86_64-pc-windows-gnu os: windows-latest + exclude: + - project: golem + cfg: + rust-target: x86_64-pc-windows-gnu + os: windows-latest # excluded for now because sozu-proxy is not compilable on windows name: Publish binaries of ${{ matrix.project }} runs-on: ${{ matrix.cfg.os }} permissions: diff --git a/golem-component-service-base/src/repo/component.rs b/golem-component-service-base/src/repo/component.rs index f732c2021..6e96bd46c 100644 --- a/golem-component-service-base/src/repo/component.rs +++ b/golem-component-service-base/src/repo/component.rs @@ -51,8 +51,8 @@ pub struct ComponentRecord { pub created_at: DateTime, pub component_type: i32, pub available: bool, - pub object_store_key: String, - pub transformed_object_store_key: String, + pub object_store_key: Option, + pub transformed_object_store_key: Option, // one-to-many relationship. Retrieved separately #[sqlx(skip)] pub files: Vec, @@ -84,10 +84,12 @@ impl ComponentRecord { created_at: value.created_at, component_type: value.component_type as i32, available, - object_store_key: object_store_key.clone(), - transformed_object_store_key: value - .transformed_object_store_key - .unwrap_or(object_store_key), + object_store_key: Some(object_store_key.clone()), + transformed_object_store_key: Some( + value + .transformed_object_store_key + .unwrap_or(object_store_key), + ), files: value .files .iter() @@ -141,8 +143,8 @@ impl TryFrom> for Component versioned_component_id, created_at: value.created_at, component_type: ComponentType::try_from(value.component_type)?, - object_store_key: Some(value.object_store_key), - transformed_object_store_key: Some(value.transformed_object_store_key), + object_store_key: value.object_store_key, + transformed_object_store_key: value.transformed_object_store_key, files, installed_plugins: value .installed_plugins