Skip to content

Conversation

@lrandersson
Copy link
Contributor

@lrandersson lrandersson commented Dec 7, 2025

Description

This PR resolves a regression introduced in 227bb65.
Initially I was planning to fix this only for ARGV_NoRegistry but I noticed that there are two errors that are handled as ${If} ${Errors} -> assign.

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?

@lrandersson lrandersson requested a review from a team as a code owner December 7, 2025 19:53
@github-project-automation github-project-automation bot moved this to 🆕 New in 🔎 Review Dec 7, 2025
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Dec 7, 2025
Comment on lines -757 to -762
; Set default value
${If} $CheckPathLength == ""
StrCpy $CheckPathLength "1"
${EndIf}

StrCpy $CheckPathLength "{{ 1 if check_path_length else 0 }}"
Copy link
Contributor Author

@lrandersson lrandersson Dec 8, 2025

Choose a reason for hiding this comment

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

I noticed we set CheckPathLength to 1 if it is not set, and then we set it to either 0 or 1. Seems odd? The documentation also says default is False for Windows regarding check_path_length, let me know what you think we should do here.

Note that I moved this code up to Function InitializeVariables and removed the "if empty set to 1" part.

Then in cli-options.md it says:

- `/CheckPathLength=[0|1]`: Check whether the installation path is too long (>46
  characters). The default depends on how the installer was created.

which I think looks like it is now with the changes in this PR.

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Approved in 🔎 Review Dec 8, 2025
@marcoesters marcoesters merged commit 4812036 into conda:main Dec 8, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this from ✅ Approved to 🏁 Done in 🔎 Review Dec 8, 2025
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.

3 participants