-
Notifications
You must be signed in to change notification settings - Fork 183
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
feat: add pixi global install
#2110
feat: add pixi global install
#2110
Conversation
f0ce8a5
to
a1c7c01
Compare
The latest changes are done to refactor the project some more to also do the binary cleaning per environment instead of in general. This should also fix the issue we had with the integration tests where we wouldn't delete old binaries in |
I'll fix the tests today. |
The main differences between @Hofer-Julian's first implementation and the refactored version is that we now don't sync on install we only install the requested environments and this also cleanup those. |
src/global/project/environment.rs
Outdated
// struct GlobalEnvironment { | ||
// name: EnvironmentName, | ||
// prefix: Prefix, | ||
// parsed_environment: ParsedEnvironment, | ||
// } | ||
// | ||
// impl GlobalEnvironment { | ||
// /// Create a new global environment object. | ||
// pub(crate) fn new( | ||
// name: EnvironmentName, | ||
// env_root: EnvRoot, | ||
// parsed_environment: ParsedEnvironment, | ||
// ) -> Self { | ||
// let prefix = Prefix::new(env_root.path().join(name.as_str().into())); | ||
// Self { | ||
// name, | ||
// prefix, | ||
// parsed_environment, | ||
// } | ||
// } | ||
// | ||
// /// Returns the name of the environment. | ||
// pub fn name(&self) -> &EnvironmentName { | ||
// &self.name | ||
// } | ||
// | ||
// /// Returns the prefix of the environment. | ||
// pub fn prefix(&self) -> &Prefix { | ||
// &self.prefix | ||
// } | ||
// | ||
// | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go 🚀
No description provided.