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

Fix some issues with virtual_specs #887

Merged
merged 6 commits into from
Nov 11, 2024
Merged

Conversation

jaimergp
Copy link
Contributor

@jaimergp jaimergp commented Nov 8, 2024

Description

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Nov 8, 2024
@jaimergp jaimergp marked this pull request as ready for review November 8, 2024 17:09
@jaimergp jaimergp requested a review from a team as a code owner November 8, 2024 17:09
CONDA_SOLVER="classic" \
CONDA_PKGS_DIRS="$(mktemp -d)" \
SYSTEM_VERSION_COMPAT=0 \
Copy link
Contributor

Choose a reason for hiding this comment

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

Since checking for the virtual package is removed, I don't think this variable is needed anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't hurt either I guess?

@@ -479,7 +479,7 @@ mkdir -p "$TMP"
# but we haven't created $PREFIX/pkgs yet... give it a temp location
# shellcheck disable=SC2050
if [ "__VIRTUAL_SPECS__" != "" ]; then
echo 'Checking virtual specs compatibility: __VIRTUAL_SPECS__'
echo "Checking virtual specs compatibility:" __VIRTUAL_SPECS__
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo "Checking virtual specs compatibility:" __VIRTUAL_SPECS__
echo "Checking virtual specs compatibility: __VIRTUAL_SPECS__"

The new code looks like it would render as "compatibility:'__virtual'". I think just replacing the single quotes with double quotes will be fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

__VIRTUAL_SPECS__ is shlex.join'ed so it will contain single quotes if it has > in it. But I'm not sure what will happen if the user types "__osx>=10.13". Given that echo admits several parameters, I'm inclined to let it roam freely because it's supposed to work like that.

@jaimergp jaimergp merged commit f8cc8d1 into conda:main Nov 11, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

virtual_specs causes installer to fail on macOS Suspicious file: miniforge3/=2.17 / quoting issue
3 participants