Skip to content

Commit

Permalink
updates core found in require
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Dec 12, 2024
1 parent 9720604 commit e5ada9d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion BigQuery/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"minimum-stability": "stable",
"require": {
"php": "^8.0",
"google/cloud-core": "^1.55",
"google/cloud-core": "^1.57",
"ramsey/uuid": "^3.0|^4.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion Language/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"minimum-stability": "stable",
"require": {
"php": "^8.0",
"google/cloud-core": "^1.52.7",
"google/cloud-core": "^1.57",
"google/gax": "^1.36.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion Logging/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"minimum-stability": "stable",
"require": {
"php": "^8.0",
"google/cloud-core": "^1.58",
"google/cloud-core": "^1.57",
"google/gax": "^1.36.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion Storage/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"minimum-stability": "stable",
"require": {
"php": "^8.0",
"google/cloud-core": "^1.55",
"google/cloud-core": "^1.57",
"ramsey/uuid": "^4.2.3"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion Trace/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"minimum-stability": "stable",
"require": {
"php": "^8.0",
"google/cloud-core": "^1.52.7",
"google/cloud-core": "^1.57",
"ramsey/uuid": "^3.0|^4.0",
"google/gax": "^1.36.0"
},
Expand Down
2 changes: 1 addition & 1 deletion Translate/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"minimum-stability": "stable",
"require": {
"php": "^8.0",
"google/cloud-core": "^1.52.7",
"google/cloud-core": "^1.57",
"google/gax": "^1.36.0"
},
"require-dev": {
Expand Down
3 changes: 2 additions & 1 deletion dev/src/Command/UpdateDepsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ protected function configure()
->addOption('component', 'c', InputOption::VALUE_REQUIRED|InputOption::VALUE_IS_ARRAY, 'bumps deps for the specified component/file')
->addOption('bump', '', InputOption::VALUE_NONE, 'Bump to latest version of the package')
->addOption('add', '', InputOption::VALUE_OPTIONAL, 'Adds the dep if it doesn\'t exist (--add=dev for require-dev)', false)
->addOption('no-dev', '', InputOption::VALUE_NONE, 'Only updates the dep if its in "require" (deps in "require-dev" are left alone)')
->addOption('local', '', InputOption::VALUE_NONE, 'Add a link to the local component')
;
}
Expand Down Expand Up @@ -73,7 +74,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$composerJson = json_decode(file_get_contents($jsonFile), true);
$require = 'require';
if (!isset($composerJson['require'][$package])) {
if (isset($composerJson['require-dev'][$package])) {
if (isset($composerJson['require-dev'][$package]) && !$input->getOption('no-dev')) {
$require = 'require-dev';
} elseif (false === $input->getOption('add')) {
continue;
Expand Down

0 comments on commit e5ada9d

Please sign in to comment.