Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kayw-geek
Copy link

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.

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.

1 participant