Bug 1791068 - Missing /etc/bash_completion.d/conda file
Summary: Missing /etc/bash_completion.d/conda file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: conda
Version: 31
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-14 19:11 UTC by Hiisi
Modified: 2020-01-31 02:00 UTC (History)
3 users (show)

Fixed In Version: conda-4.8.0-2.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-23 16:06:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.