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: also install environment when using add #213

Merged
merged 5 commits into from
Jul 14, 2023

Conversation

baszalmstra
Copy link
Contributor

Fix #202

Can be disabled with --no-install flag. The tests set this flag by default to reduce test time by default.

@tdejager
Copy link
Contributor

Why do we need this?

@tdejager
Copy link
Contributor

Apparently this was asked for in: #202

src/cli/add.rs Show resolved Hide resolved
.await?;
}
} else {
eprintln!("{} skipping installation of environment because your platform ({platform}) is not supported by this project.", style("!").yellow().bold())
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this warning also be shown when the get_up_to_date_prefix is run?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

get_up_to_date_prefix also does this but it results in an error.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I explicitly did it this way because I think it makes sense that you can add dependencies even if your platform doesn't support the project. However, actually installing the dependencies (in pixi run for instance) is problematic.

src/cli/add.rs Outdated Show resolved Hide resolved
@tdejager tdejager merged commit 08444f0 into prefix-dev:main Jul 14, 2023
9 checks passed
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.

Download + install in add command
2 participants