We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9af3b74 + 1409d1b commit bb5eb64Copy full SHA for bb5eb64
src/SPC/command/dev/PackLibCommand.php
@@ -42,6 +42,15 @@ public function handle(): int
42
43
$builder->proveLibs($libraries);
44
$builder->validateLibsAndExts();
45
+
46
+ // before pack, check if the dependency tree contains lib-suggests
47
+ foreach ($libraries as $lib) {
48
+ if (Config::getLib($lib, 'lib-suggests', []) !== []) {
49
+ logger()->critical("The library {$lib} has lib-suggests, packing [{$lib_name}] is not safe, abort !");
50
+ return static::FAILURE;
51
+ }
52
53
54
foreach ($builder->getLibs() as $lib) {
55
if ($lib->getName() !== $lib_name) {
56
// other dependencies: install or build, both ok
0 commit comments