Skip to content

Commit

Permalink
Merge pull request #152 from scandipwa/fix-global-composer-plugin-ins…
Browse files Browse the repository at this point in the history
…tallation

TEAMS-1018 - Fix installation of global composer plugins
  • Loading branch information
ejnshtein authored Aug 6, 2024
2 parents d77d415 + 1a02ec9 commit 44eb6e5
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,17 @@ const buildDockerFileInstructions = async (ctx, { image, tag }) => {
composer.plugins
)) {
if (pluginOptions.enabled) {
const pluginVersion = pluginOptions.version
dockerFileInstructions
.comment(`install ${pluginName} composer global package`)
.comment(
`install ${pluginName}${
pluginVersion ? ` (version ${pluginVersion})` : ''
} composer global package`
)

.run(
`composer global require ${pluginName}${
pluginOptions.options
? ` ${pluginOptions.options}`
: ''
pluginVersion ? `:${pluginVersion}` : ''
}${
pluginOptions.options
? ` ${pluginOptions.options}`
Expand Down

0 comments on commit 44eb6e5

Please sign in to comment.