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 future versions of pixi to read old pixi.toml files #1066

Closed
Yura52 opened this issue Mar 27, 2024 · 3 comments
Closed

Allow future versions of pixi to read old pixi.toml files #1066

Yura52 opened this issue Mar 27, 2024 · 3 comments
Labels
✨ enhancement Feature request

Comments

@Yura52
Copy link
Contributor

Yura52 commented Mar 27, 2024

Problem description

Since backward incompatible changes in file formats are possible, pixi.toml written today can become invalid for future versions of pixi. It would be nice to guarantee that pixi.toml files, no matter how old, will remain compatible with future versions of pixi. More details, motivation and ideas can be found in this discussion.

P.S. My understanding is that pixi.lock are guaranteed to be compatible with future versions of pixi by setting the "version" key (example). If this is not true, than this issue applies to pixi.lock as well.

@Yura52 Yura52 added the ✨ enhancement Feature request label Mar 27, 2024
@Yura52 Yura52 changed the title Ensure that future versions of pixi will be able to read old pixi.toml files Allow future versions of pixi to read old pixi.toml files Mar 27, 2024
@gzm55
Copy link

gzm55 commented Mar 27, 2024

Is it possible to lock the pixi binary version and toml version inside a pixi project (a directory with pixi.toml) with some in-project config and entrypoint script, then the new version binary should provide the migration method to convert old version pixi.toml to new version.

@baszalmstra
Copy link
Contributor

I can safely say that with every change we make strive to be backward compatible. However, we cannot guarantee this while we are very actively developing on pixi. If however, breaking changes are made we will make the path to upgrade very easy.

I can see a future where we will add a version to the pixi.toml. But as long as we don't make backward-incompatible changes we most likely won't be adding it because there is no need (the absence of the field would imply version 0).

@baszalmstra
Copy link
Contributor

Closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement Feature request
Projects
None yet
Development

No branches or pull requests

3 participants