这是indexloc提供的服务,不要输入任何密码
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
2 changes: 1 addition & 1 deletion src/Tool/Command/BoxBuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(string $repository, string $phar, string $bin, strin
public function __toString(): string
{
return \sprintf(
'git clone %s %s&& cd %s && git checkout %s && composer install --no-dev --no-suggest --prefer-dist -n && box compile && mv %s %s && chmod +x %s && cd && rm -rf %s',
'git clone %s %s&& cd %s && git checkout %s && composer install --no-dev --prefer-dist -n && box compile && mv %s %s && chmod +x %s && cd && rm -rf %s',
$this->repository,
$this->targetDir(),
$this->targetDir(),
Expand Down
2 changes: 1 addition & 1 deletion src/Tool/Command/ComposerBinPluginCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(string $package, string $namespace, Collection $link

public function __toString(): string
{
return \sprintf('composer global bin %s require --no-suggest --prefer-dist --update-no-dev -n %s%s', $this->namespace, $this->package, $this->linkCommand());
return \sprintf('composer global bin %s require --prefer-dist --update-no-dev -n %s%s', $this->namespace, $this->package, $this->linkCommand());
}

public function package(): string
Expand Down
2 changes: 1 addition & 1 deletion src/Tool/Command/ComposerGlobalInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct(string $package)

public function __toString(): string
{
return \sprintf('composer global require --no-suggest --prefer-dist --update-no-dev -n %s', $this->package);
return \sprintf('composer global require --prefer-dist --update-no-dev -n %s', $this->package);
}

public function package(): string
Expand Down
2 changes: 1 addition & 1 deletion src/Tool/Command/ComposerGlobalMultiInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public function __toString(): string
return $command->package();
}, $this->commands->toArray()));

return \sprintf('composer global require --no-suggest --prefer-dist --update-no-dev -n %s', $packages);
return \sprintf('composer global require --prefer-dist --update-no-dev -n %s', $packages);
}
}
2 changes: 1 addition & 1 deletion src/Tool/Command/ComposerInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(string $repository, string $targetDir, ?string $vers
public function __toString(): string
{
return \sprintf(
'git clone %s %s && cd %s && git checkout %s && composer install --no-dev --no-suggest --prefer-dist -n',
'git clone %s %s && cd %s && git checkout %s && composer install --no-dev --prefer-dist -n',
$this->repository,
$this->targetDir,
$this->targetDir,
Expand Down
2 changes: 1 addition & 1 deletion src/Tool/Command/OptimisedComposerBinPluginCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private function packagesGroupedByNamespace(): array

private function commandToRun(string $namespace, array $packages): string
{
return \sprintf('composer global bin %s require --no-suggest --prefer-dist --update-no-dev -n %s', $namespace, \implode(' ', $packages));
return \sprintf('composer global bin %s require --prefer-dist --update-no-dev -n %s', $namespace, \implode(' ', $packages));
}

private function commandsToRun(array $packagesGrouped): array
Expand Down
2 changes: 1 addition & 1 deletion tests/Tool/Command/BoxBuildCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function test_it_generates_the_installation_command()
$this->assertMatchesRegularExpression('#git clone '.self::REPOSITORY.'#', (string) $command);
$this->assertMatchesRegularExpression('#cd /tools/behat#', (string) $command);
$this->assertMatchesRegularExpression('#git checkout '.self::VERSION.'#', (string) $command);
$this->assertMatchesRegularExpression('#composer install --no-dev --no-suggest --prefer-dist -n#', (string) $command);
$this->assertMatchesRegularExpression('#composer install --no-dev --prefer-dist -n#', (string) $command);
$this->assertMatchesRegularExpression('#box compile#', (string) $command);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Tool/Command/ComposerInstallCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function test_it_generates_the_installation_command()

$this->assertMatchesRegularExpression('#git clone '.self::REPOSITORY.'#', (string) $command);
$this->assertMatchesRegularExpression('#git checkout '.self::VERSION.'#', (string) $command);
$this->assertMatchesRegularExpression('#composer install --no-dev --no-suggest --prefer-dist -n#', (string) $command);
$this->assertMatchesRegularExpression('#composer install --no-dev --prefer-dist -n#', (string) $command);
}

public function test_it_tries_to_guess_version_number_if_not_given_one()
Expand Down