Skip to content

Conversation

@kayw-geek
Copy link
Contributor

Summary

Fixes incorrect path resolution when using composer global config to get bin-dir.

How to Reproduce

Current directory: /Users/xx/Projects/dotfiles
Try to get global bin-dir composer config -g bin-dir --absolute

Expected: ~/.composer/vendor/bin
Actual: /Users/xx/Projects/dotfiles/vendor/bin

Solution

Set the config's baseDir to the home directory when --global flag is used, ensuring absolute paths are calculated correctly for global configuration.

@Seldaek
Copy link
Member

Seldaek commented Sep 17, 2025

Thanks, makes sense, merged as 8c02fa9 in 2.8 branch

@Seldaek Seldaek closed this Sep 17, 2025
@Seldaek Seldaek added this to the 2.8 milestone Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants