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

build-setup.sh $(which conda) returns function #2002

Open
3 tasks done
allpan3 opened this issue Aug 15, 2024 · 1 comment
Open
3 tasks done

build-setup.sh $(which conda) returns function #2002

allpan3 opened this issue Aug 15, 2024 · 1 comment
Labels

Comments

@allpan3
Copy link

allpan3 commented Aug 15, 2024

Background Work

Chipyard Version and Hash

Release: 1.12.2
Hash: dccedae

OS Setup

lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Rocky
Description: Rocky Linux release 8.8 (Green Obsidian)
Release: 8.8
Codename: GreenObsidian

Other Setup

Ex: Prior steps taken / Documentation Followed / etc...

Current Behavior

which conda outputs the function instead of executable path because function names take precedence.

$ which conda
conda ()
{
    \local cmd="${1-__missing__}";
    case "$cmd" in
        activate | deactivate)
            __conda_activate "$@"
        ;;
        install | update | upgrade | remove | uninstall)
            __conda_exe "$@" || \return;
            __conda_reactivate
        ;;
        *)
            __conda_exe "$@"
        ;;
    esac
}

Expected Behavior

This may be specific to my OS environment, but would suggest a more compatible way to get the executable path, like type -P conda.

Other Information

No response

@allpan3 allpan3 added the bug label Aug 15, 2024
@alsrbok
Copy link

alsrbok commented Aug 26, 2024

I just removed that which conda option. You can check my recent question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants