You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A project I work on is using this action, and began failing with the switch to the composer being the version used by default. It transpires that this is because the composer config contains:
"config": {
"bin-dir": "bin"
}
and the action bash script has a hardcoded expectation that the bin directory is in vendor
I understand that this is an edge case you may not want to support. But wanted to flag it up for anyone else hitting the same issue (your docs very clearly point out that it's looking for vendor/bin, but apparently not clearly enough for me!!) We've configured to using latest
The text was updated successfully, but these errors were encountered:
Hi @g105b just got into this problem with a project that as an alternate vendor binary location. So I might give it a shot to contribute a PR for fixing this. Do you have already some ideas about how you wanted to solve this?
Setting the bin-dir configuration setting in composer.json
Setting the environment variable COMPOSER_BIN_DIR
Was thinking to look for bin-dir in composer.json with jq/awk/whatever and start from there to see if there's anything or eventually fallback to vendor/bin/phpstan as VENDOR_BIN. Would that make sense?
A project I work on is using this action, and began failing with the switch to the composer being the version used by default. It transpires that this is because the composer config contains:
and the action bash script has a hardcoded expectation that the bin directory is in
vendor
I understand that this is an edge case you may not want to support. But wanted to flag it up for anyone else hitting the same issue (your docs very clearly point out that it's looking for
vendor/bin
, but apparently not clearly enough for me!!) We've configured to usinglatest
The text was updated successfully, but these errors were encountered: