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

feat: add pixi global install #2110

Merged

Conversation

Hofer-Julian
Copy link
Contributor

No description provided.

@Hofer-Julian Hofer-Julian marked this pull request as ready for review September 26, 2024 08:14
@ruben-arts
Copy link
Contributor

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 pixi g install

@ruben-arts
Copy link
Contributor

I'll fix the tests today.

@ruben-arts
Copy link
Contributor

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.

Comment on lines 67 to 99
// 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
// }
//
//
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be removed?

@baszalmstra baszalmstra added the area:global Related to pixi global label Sep 30, 2024
@ruben-arts ruben-arts added this to the New `pixi global` milestone Sep 30, 2024
Copy link
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

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

Let's go 🚀

@ruben-arts ruben-arts merged commit 05e82c3 into prefix-dev:feature/pixi-global Sep 30, 2024
16 checks passed
@Hofer-Julian Hofer-Julian deleted the feat/pixi-global-install branch September 30, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:global Related to pixi global
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants