Skip to content

Commit

Permalink
fix: allow cosign opts to be empty in aqua (#4396)
Browse files Browse the repository at this point in the history
The opts attribute on cosign check for aqua is optional. If not provided
it will make the package resolution fail. This patch makes it optional
and provide an empty array if key is not found.

This address the issue described here:
#4092
  • Loading branch information
IxDay authored Feb 14, 2025
1 parent d5c1be0 commit d9ac9c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aqua/aqua_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ pub struct AquaCosign {
pub signature: Option<AquaCosignSignature>,
pub key: Option<AquaCosignSignature>,
pub certificate: Option<AquaCosignSignature>,
#[serde(skip_serializing_if = "Vec::is_empty", default)]
opts: Vec<String>,
}

Expand Down

0 comments on commit d9ac9c2

Please sign in to comment.