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

Allow empty "info" key for repodata.json #1179

Closed
2 tasks done
dahakawang opened this issue Mar 23, 2025 · 1 comment · Fixed by #1181
Closed
2 tasks done

Allow empty "info" key for repodata.json #1179

dahakawang opened this issue Mar 23, 2025 · 1 comment · Fixed by #1181

Comments

@dahakawang
Copy link
Contributor

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

Hello, Rattler team! I've started to use pixi at work after trying it for some time at home, but within the context of our on-prem Artifactory, it always fails with the below error:

  × failed to parse repodata.json
  ╰─▶ missing field `subdir` at line 2 column 14

After digging into it for a bit I start to believe that this is because Artifactory emits a repodata.json with a slight schema difference that rattler is not comfortable with:

{
  "info" : { },    <--- for whatever reason, this is empty but still presented
  "packages" : {
  }
}

while it looks like in rattler, if "info" is presented, it would require "subdir" to be also there: https://github.com/conda/rattler/blob/main/crates/rattler_conda_types/src/repo_data/mod.rs#L74

I'm not sure what the spec says about this (or if there's a spec?), but to me it's unlikely to change Artifactory's behavior, plus both conda/mamba work in the same context. I thus want to turn to you guys for some help, would it be possible to model this on the rattler side in a way that such repodata.json is allowed?

Additional Context

No response

@baszalmstra
Copy link
Collaborator

Sure, Id be happy to accept a PR!

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 a pull request may close this issue.

2 participants