Skip to content

Commit 3f5a3ac

Browse files
authored
Use an absolute path when resolving the composer vendor dir
1 parent 5bc5fc6 commit 3f5a3ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Composer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@ public function setVendorDir(string $vendorDir): static
347347
*/
348348
public function getComposerVendorDir(): string
349349
{
350-
return rtrim($this->getVendorDir(), DIRECTORY_SEPARATOR)
350+
return rtrim($this->getWorkDir(), DIRECTORY_SEPARATOR)
351+
. DIRECTORY_SEPARATOR
352+
. rtrim($this->getVendorDir(), DIRECTORY_SEPARATOR)
351353
. DIRECTORY_SEPARATOR
352354
. 'composer';
353355
}

0 commit comments

Comments
 (0)