Skip to content

feat: Add purls to IndexJson - #1303

Merged
wolfv merged 3 commits into
conda:mainfrom
pavelzw:purls-index-json
May 15, 2025
Merged

feat: Add purls to IndexJson#1303
wolfv merged 3 commits into
conda:mainfrom
pavelzw:purls-index-json

Conversation

@pavelzw

@pavelzw pavelzw commented May 15, 2025

Copy link
Copy Markdown
Member

Description

xref conda/ceps#63

@wolfv wolfv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@baszalmstra baszalmstra left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Lets reference the CEP in the description and in the code maybe.

But looks good to me!

@pavelzw

pavelzw commented May 15, 2025

Copy link
Copy Markdown
Member Author

like this @baszalmstra? be00977 (#1303)

@wolfv
wolfv merged commit 81a2164 into conda:main May 15, 2025

/// A list of Package URLs identifying this package.
/// See this CEP: <https://github.com/conda/ceps/pull/63>
pub purls: Option<BTreeSet<PackageUrl>>,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry we need to add #[serde(default, skip_serializing ...] here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@xhochy

xhochy commented May 16, 2025

Copy link
Copy Markdown

Shouldn't the CEP be first accepted before we implement this?

@wolfv

wolfv commented May 16, 2025

Copy link
Copy Markdown
Contributor

The way it is implemented now it will not change any existing metadata (since it will not render into the JSON when the Option is None). We'll be careful to only allow this in rattler-build with tge experimental flag enabled.

@pavelzw
pavelzw deleted the purls-index-json branch May 16, 2025 12:15
@pavelzw

pavelzw commented May 16, 2025

Copy link
Copy Markdown
Member Author

our plan is to experiment a bit with those features first; it's easier to just merge these things in and then build possible implementations for rattler-tooling, otherwise you need to mess around a lot with git dependencies in rust

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.

4 participants