Bug 1955455

Summary: "global" directory added to path not correct
Product: [Fedora] Fedora Reporter: François Kooman <fkooman>
Component: composerAssignee: Remi Collet <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: fedora, shawn
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: composer-2.1.3-1.fc34 composer-2.1.3-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-19 01:08:14 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 François Kooman 2021-04-30 07:35:30 UTC
Description of problem:

When installing composer, two files are written to /etc/profile.d:

/etc/profile.d/composer.csh
/etc/profile.d/composer.sh

However, the path they add for "global" composer is $HOME/.composer/vendor/bin. This is not the path where the files end up on Fedora, they are in $HOME/.config/composer/vendor/bin.

Version-Release number of selected component (if applicable):

composer-2.0.12-1.fc33.noarch

(same also on Fedora 34)

How reproducible:

Always

Steps to Reproduce:
1. Install composer
2. composer global require vimeo/psalm
3. run "psalm"

Actual results:

Not in path.

Expected results:

In path.

Additional info:

Comment 1 Remi Collet 2021-05-31 13:35:00 UTC
IMHO XDG support in composer is broken... or at least very partially implemented


$HOME/.config/composer/vendor/bin doesn't seems a proper place for command, this directory is for "config"


$HOME/.composer/vendor/bin will be used by composer if exists.
which seems a better place

So:

rm -rf $HOME/.config/composer
mkdir $HOME/.composer

Comment 2 Remi Collet 2021-05-31 14:02:42 UTC
So, I think simpler is to disable XDG support
So $HOME/.composer will be used in all cases

Done in
https://src.fedoraproject.org/rpms/composer/c/ce36f5cbc0d66cc2df2785be25266877e097a927?branch=rawhide

Comment 3 Fedora Update System 2021-05-31 14:06:47 UTC
FEDORA-2021-d2d87c1bd4 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d2d87c1bd4

Comment 4 Fedora Update System 2021-05-31 14:06:48 UTC
FEDORA-2021-c0896200cf has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c0896200cf

Comment 5 Fedora Update System 2021-06-01 00:59:19 UTC
FEDORA-2021-d2d87c1bd4 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-d2d87c1bd4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-d2d87c1bd4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-06-01 01:43:23 UTC
FEDORA-2021-c0896200cf has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-c0896200cf`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-c0896200cf

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-06-04 01:18:57 UTC
FEDORA-2021-8510c99169 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-8510c99169`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-8510c99169

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2021-06-04 01:47:50 UTC
FEDORA-2021-6625195a37 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-6625195a37`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-6625195a37

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2021-06-05 01:09:26 UTC
FEDORA-2021-9aa3946ec4 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-9aa3946ec4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-9aa3946ec4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2021-06-05 01:57:11 UTC
FEDORA-2021-97a0cda4f8 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-97a0cda4f8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-97a0cda4f8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2021-06-08 01:51:23 UTC
FEDORA-2021-a2f8aeb710 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a2f8aeb710`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a2f8aeb710

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2021-06-09 01:16:33 UTC
FEDORA-2021-b3a7584638 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-b3a7584638`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-b3a7584638

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2021-06-11 01:42:30 UTC
FEDORA-2021-8c1a8baf43 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-8c1a8baf43`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-8c1a8baf43

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2021-06-11 02:07:30 UTC
FEDORA-2021-4187b48168 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4187b48168`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4187b48168

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2021-06-19 01:08:14 UTC
FEDORA-2021-4187b48168 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2021-06-19 01:13:57 UTC
FEDORA-2021-8c1a8baf43 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.