Bug 1791068

Summary: Missing /etc/bash_completion.d/conda file
Product: [Fedora] Fedora Reporter: Hiisi <very-cool>
Component: condaAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 31CC: orion, very-cool, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: conda-4.8.0-2.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-23 16:06:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hiisi 2020-01-14 19:11:06 UTC
Description of problem:
After running `conda init` each time a new terminal window is open a message appears at the very first line of the terminal:

bash: /etc/bash_completion.d/conda: No such file or directory

Version-Release number of selected component (if applicable):
conda-4.8.0-1.fc31.noarch

Steps to Reproduce:
1. run `conda init`
2. reopen the terminal

Additional info:
From the post on users mail list (https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/6N5AQ4EGYTXT7Y2XLXLYFSSH5255BTHL/):
It looks like the
conda tarball contains the bash_completion.d file¹, but it's
not installed with the package.  So either that should be
fixed (or if there's a reason to not include the file, then
conda should be patched so init doesn't try to reference
that file).

A further improvement might be for upstream to use the
preferred location for completions via:

    pkg-config --variable=completionsdir bash-completion

¹ conda/shell/etc/bash_completion.d/conda in the current
  conda-4.8.0 tarball.

Comment 1 Orion Poplawski 2020-01-20 03:41:30 UTC
Hmm, the whole 'conda init' thing is pretty dodgy at this point, but yeah we should be installing /etc/bash_completion.d/conda.

Comment 2 Fedora Update System 2020-01-20 04:12:57 UTC
FEDORA-2020-90cb8a1de9 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-90cb8a1de9

Comment 3 Orion Poplawski 2020-01-20 04:26:40 UTC
And of course as soon as I didn't that it appears that they completely changed things again with 4.8.1 - so who knows how that will work.  Still poking at it.

Comment 4 Fedora Update System 2020-01-21 03:53:21 UTC
conda-4.8.0-2.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-90cb8a1de9

Comment 5 Hiisi 2020-01-23 16:06:49 UTC
It work as of now. Thank you for your great efforts!

Comment 6 Fedora Update System 2020-01-31 02:00:58 UTC
conda-4.8.0-2.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.