Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/DependencyResolver/ResolveDependencyWithComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@ private function assertBuildProviderProvidersBundledExtensions(TargetPlatform $t
));
}

if ($buildProvider === 'Homebrew') {
$identifiedBuildProvider = true;
$this->io->write(sprintf(
'<comment>%sThe bundled extension %s is likely already installed with Homebrew, and you should use that version.</comment>',
$note,
$piePackage->extensionName()->name(),
));
}

if ($identifiedBuildProvider && ! $forceInstallPackageVersion) {
throw BundledPhpExtensionRefusal::forPackage($piePackage);
}
Expand Down
5 changes: 2 additions & 3 deletions test/end-to-end/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ FROM homebrew/brew AS test_pie_installs_build_tools_with_brew
RUN brew install php
COPY --from=build_pie_phar /app/pie.phar /usr/local/bin/pie
USER root
RUN apt-get update && apt-get install -y unzip libbz2-dev
RUN apt-get update && apt-get install -y unzip
RUN apt-get remove --allow-remove-essential -y apt
USER linuxbrew
RUN brew install bzip2
RUN pie install --auto-install-build-tools -v php/bz2
RUN pie install --auto-install-build-tools -v asgrim/example-pie-extension
RUN pie show