Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion constructor/header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ chmod +x "$CONDA_EXEC"

{%- if conda_exe_name != "_conda" %}
# In case there are packages that depend on _conda
ln -s "$CONDA_EXEC" "$PREFIX"/_conda
ln -s -f "$CONDA_EXEC" "$PREFIX"/_conda
{%- endif %}

{%- for filename, (start, end, executable) in conda_exe_payloads|items %}
Expand Down
2 changes: 1 addition & 1 deletion constructor/osx/prepare_installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ chmod +x "$CONDA_EXEC"

{%- if conda_exe_name != "_conda" %}
# In case there are packages that depend on _conda
ln -s "$CONDA_EXEC" "$PREFIX"/_conda
ln -s -f "$CONDA_EXEC" "$PREFIX"/_conda
{%- endif %}

# Create a blank history file so conda thinks this is an existing env
Expand Down
3 changes: 3 additions & 0 deletions news/fix-symbolic-linking
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Bug fixes

* [#1090](https://github.com/conda/constructor/pull/1090) introduced symbolic linking of `_conda`. This fails the whole installer, if the `_conda` file (or link) exists at the target location. [#1135](https://github.com/conda/constructor/pull/1135) fixes this, by forcing (`-f`) the symlink.
Loading