Hello community, here is the log from the commit of package platformsh-cli for openSUSE:Leap:15.2 checked in at 2020-01-17 12:06:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/platformsh-cli (Old) and /work/SRC/openSUSE:Leap:15.2/.platformsh-cli.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "platformsh-cli" Fri Jan 17 12:06:00 2020 rev:36 rq:765056 version:3.51.1 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/platformsh-cli/platformsh-cli.changes 2020-01-15 15:44:19.311285077 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.platformsh-cli.new.26092/platformsh-cli.changes 2020-01-17 12:06:08.920628431 +0100 @@ -1,0 +2,15 @@ +Wed Jan 15 21:17:18 UTC 2020 - ji...@boombatower.com + +- Update to version 3.51.1: + * Release v3.51.1 + * Deprecate password login (#850) + * Improve "platform branch" message in checkout command, when there is only one branch + * Installer: force self:install output to stdout (#890) + * Fix auto login when a current project is selected + * Fix argument quoting in db:size on Windows (#889) + * Make --shared-key optional for the health.webhook integration + * Build the Phar file on gitlab + * Tweak deprecation method for the --branch option on the push command [skip changelog] + * Handle a 403 from the subscription endpoint in project:delete + +------------------------------------------------------------------- Old: ---- platformsh-cli-3.51.0.tar.xz New: ---- platformsh-cli-3.51.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ platformsh-cli.spec ++++++ --- /var/tmp/diff_new_pack.gVZziZ/_old 2020-01-17 12:06:09.820628827 +0100 +++ /var/tmp/diff_new_pack.gVZziZ/_new 2020-01-17 12:06:09.824628829 +0100 @@ -1,7 +1,7 @@ # # spec file for package platformsh-cli # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: platformsh-cli -Version: 3.51.0 +Version: 3.51.1 Release: 0 Summary: Tool for managing Platform.sh services from the command line # See licenses.txt for dependency licenses. ++++++ _service ++++++ --- /var/tmp/diff_new_pack.gVZziZ/_old 2020-01-17 12:06:09.868628848 +0100 +++ /var/tmp/diff_new_pack.gVZziZ/_new 2020-01-17 12:06:09.868628848 +0100 @@ -2,7 +2,7 @@ <service name="tar_scm" mode="disabled"> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> - <param name="revision">refs/tags/v3.51.0</param> + <param name="revision">refs/tags/v3.51.1</param> <param name="url">git://github.com/platformsh/platformsh-cli.git</param> <param name="scm">git</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.gVZziZ/_old 2020-01-17 12:06:09.884628856 +0100 +++ /var/tmp/diff_new_pack.gVZziZ/_new 2020-01-17 12:06:09.888628858 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">git://github.com/platformsh/platformsh-cli.git</param> - <param name="changesrevision">c643a9a47ae501d138a7a3c8f3ff633bbff5bce5</param> + <param name="changesrevision">3a004ebc8d3264622cd66fb9585179f205093483</param> </service> </servicedata> ++++++ platformsh-cli-3.51.0.tar.xz -> platformsh-cli-3.51.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/.editorconfig new/platformsh-cli-3.51.1/.editorconfig --- old/platformsh-cli-3.51.0/.editorconfig 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/.editorconfig 2020-01-15 16:55:46.000000000 +0100 @@ -16,3 +16,6 @@ [*.yaml] indent_size = 2 + +[*.yml] +indent_size = 2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/.gitlab-ci.yml new/platformsh-cli-3.51.1/.gitlab-ci.yml --- old/platformsh-cli-3.51.0/.gitlab-ci.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/platformsh-cli-3.51.1/.gitlab-ci.yml 2020-01-15 16:55:46.000000000 +0100 @@ -0,0 +1,17 @@ +variables: + COMPOSER_HOME: /cache/composer + +build: + image: composer + script: + - composer install --no-dev --no-interaction + - | + cd vendor-bin/box + composer install --no-interaction + cd - + mkdir -p vendor/bin + ln -s "$(realpath vendor-bin/box/vendor/bin/box)" vendor/bin/box + - ./bin/platform self:build --no-composer-rebuild --yes --replace-version "$CI_COMMIT_REF_NAME"-"$CI_COMMIT_SHORT_SHA" --output platform.phar + artifacts: + expose_as: 'cli-phar' + paths: ['platform.phar'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/README.md new/platformsh-cli-3.51.1/README.md --- old/platformsh-cli-3.51.0/README.md 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/README.md 2020-01-15 16:55:46.000000000 +0100 @@ -236,7 +236,8 @@ application: # The method used for interactive login: 'browser' or 'password' (defaults to - # 'browser'). + # 'browser'). Password login is deprecated and will be removed from the API + # in future. login_method: browser # The default timezone for times displayed or interpreted by the CLI. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/config.yaml new/platformsh-cli-3.51.1/config.yaml --- old/platformsh-cli-3.51.0/config.yaml 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/config.yaml 2020-01-15 16:55:46.000000000 +0100 @@ -21,6 +21,7 @@ # The default interactive login method: either 'browser' or 'password'. # This can be overridden in the user config file. + # N.B. password login is now deprecated, and will be removed from the API in future. login_method: browser # The default timezone for times displayed or interpreted by the CLI. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/dist/installer.php new/platformsh-cli-3.51.1/dist/installer.php --- old/platformsh-cli-3.51.0/dist/installer.php 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/dist/installer.php 2020-01-15 16:55:46.000000000 +0100 @@ -286,7 +286,7 @@ } putenv('CLICOLOR_FORCE=' . ($this->terminalSupportsAnsi() ? '1' : '0')); - return $this->runCommand($command); + return $this->runCommand($command, true); } /** @@ -351,11 +351,14 @@ } /** + * Runs a shell command. + * * @param string $cmd + * @param bool $forceStdout Whether to redirect all stderr output to stdout. * - * @return int + * @return int The command's exit code. */ - private function runCommand($cmd) { + private function runCommand($cmd, $forceStdout = false) { /* * Set up the STDIN, STDOUT and STDERR constants. * @@ -374,7 +377,7 @@ define('STDERR', fopen('php://stderr', 'w')); } - $process = proc_open($cmd, [STDIN, STDOUT, STDERR], $pipes); + $process = proc_open($cmd, [STDIN, STDOUT, $forceStdout ? STDOUT : STDERR], $pipes); return proc_close($process); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/dist/manifest.json new/platformsh-cli-3.51.1/dist/manifest.json --- old/platformsh-cli-3.51.0/dist/manifest.json 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/dist/manifest.json 2020-01-15 16:55:46.000000000 +0100 @@ -17,10 +17,10 @@ }, { "name": "platform.phar", - "sha1": "82328eb0122e1610211cbab83974a2d44d0b31cb", - "sha256": "d0ca2f2d78773ce8d40f5448787a1254bf146a2ecc02afa4ae75bc4b9cec3941", - "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.51.0/platform.phar", - "version": "3.51.0", + "sha1": "88380dc17038a2ea65c16cba5870728fb4546b21", + "sha256": "bb5d18d3a820686288b5752982fc3e375accba4aa1adbbf5cb3c3450af4a10fb", + "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.51.1/platform.phar", + "version": "3.51.1", "php": { "min": "5.5.9" }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/src/Command/Auth/PasswordLoginCommand.php new/platformsh-cli-3.51.1/src/Command/Auth/PasswordLoginCommand.php --- old/platformsh-cli-3.51.0/src/Command/Auth/PasswordLoginCommand.php 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/src/Command/Auth/PasswordLoginCommand.php 2020-01-15 16:55:46.000000000 +0100 @@ -9,6 +9,7 @@ class PasswordLoginCommand extends CommandBase { + protected $stability = 'deprecated'; protected function configure() { @@ -53,7 +54,12 @@ $this->stdErr->writeln( 'Please log in using your <info>' . $this->config()->get('service.name') . '</info> account.' ); + + $this->stdErr->writeln(''); + $this->stdErr->writeln('<fg=yellow;options=bold,reverse>Warning: </><fg=yellow;options=reverse>This command is deprecated.</>'); + $this->stdErr->writeln(sprintf('Password login will soon be removed in the %s API.', $this->config()->get('service.name'))); $this->stdErr->writeln(''); + $this->configureAccount($input, $this->stdErr); /** @var \Doctrine\Common\Cache\CacheProvider $cache */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/src/Command/Db/DbSizeCommand.php new/platformsh-cli-3.51.1/src/Command/Db/DbSizeCommand.php --- old/platformsh-cli-3.51.0/src/Command/Db/DbSizeCommand.php 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/src/Command/Db/DbSizeCommand.php 2020-01-15 16:55:46.000000000 +0100 @@ -7,6 +7,7 @@ use Platformsh\Cli\Service\Relationships; use Platformsh\Cli\Service\Ssh; use Platformsh\Cli\Service\Table; +use Platformsh\Cli\Util\OsUtil; use Platformsh\Client\Model\Deployment\Service; use Symfony\Component\Console\Helper\Helper; use Symfony\Component\Console\Input\InputInterface; @@ -230,9 +231,9 @@ $dbUrl = $relationships->getDbCommandArgs('psql', $database, ''); return sprintf( - "psql --echo-hidden -t --no-align %s -c '%s'", + 'psql --echo-hidden -t --no-align %s -c %s', $dbUrl, - $query + OsUtil::escapePosixShellArg($query) ); } @@ -250,9 +251,9 @@ $connectionParams = $relationships->getDbCommandArgs('mysql', $database, ''); return sprintf( - "mysql %s --no-auto-rehash --raw --skip-column-names --execute '%s'", + 'mysql %s --no-auto-rehash --raw --skip-column-names --execute %s', $connectionParams, - $query + OsUtil::escapePosixShellArg($query) ); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/src/Command/Environment/EnvironmentCheckoutCommand.php new/platformsh-cli-3.51.1/src/Command/Environment/EnvironmentCheckoutCommand.php --- old/platformsh-cli-3.51.0/src/Command/Environment/EnvironmentCheckoutCommand.php 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/src/Command/Environment/EnvironmentCheckoutCommand.php 2020-01-15 16:55:46.000000000 +0100 @@ -136,7 +136,7 @@ } if (!count($environmentList)) { $this->stdErr->writeln(sprintf( - 'Use <info>%s branch</info> to create an environment.', + 'To create a new environment, run: <info>%s branch [new-branch]</info>', $this->config()->get('application.executable') )); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/src/Command/Environment/EnvironmentPushCommand.php new/platformsh-cli-3.51.1/src/Command/Environment/EnvironmentPushCommand.php --- old/platformsh-cli-3.51.0/src/Command/Environment/EnvironmentPushCommand.php 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/src/Command/Environment/EnvironmentPushCommand.php 2020-01-15 16:55:46.000000000 +0100 @@ -43,7 +43,7 @@ protected function execute(InputInterface $input, OutputInterface $output) { - $this->warnAboutDeprecatedOptions(['branch'], 'The option %s is deprecated and will be removed in future. Use --activate, which has the same effect.'); + $this->warnAboutDeprecatedOptions(['branch'], 'The option --%s is deprecated and will be removed in future. Use --activate, which has the same effect.'); $this->validateInput($input, true); $projectRoot = $this->getProjectRoot(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/src/Command/Integration/IntegrationCommandBase.php new/platformsh-cli-3.51.1/src/Command/Integration/IntegrationCommandBase.php --- old/platformsh-cli-3.51.0/src/Command/Integration/IntegrationCommandBase.php 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/src/Command/Integration/IntegrationCommandBase.php 2020-01-15 16:55:46.000000000 +0100 @@ -257,6 +257,7 @@ ]], 'description' => 'Webhook: the JWS shared secret key', 'questionLine' => 'Enter the JWS shared secret key, for validating webhook requests', + 'required' => false, ]), 'events' => new ArrayField('Events to report', [ 'conditions' => ['type' => [ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/src/Command/Project/ProjectDeleteCommand.php new/platformsh-cli-3.51.1/src/Command/Project/ProjectDeleteCommand.php --- old/platformsh-cli-3.51.0/src/Command/Project/ProjectDeleteCommand.php 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/src/Command/Project/ProjectDeleteCommand.php 2020-01-15 16:55:46.000000000 +0100 @@ -60,13 +60,15 @@ } } + $client = $this->api()->getClient(); $subscriptionId = $project->getSubscriptionId(); - $subscription = $this->api()->getClient()->getSubscription($subscriptionId); - if (!$subscription) { - throw new \RuntimeException('Subscription not found: ' . $subscriptionId); - } try { + $subscription = $client->getSubscription($subscriptionId); + if (!$subscription) { + throw new \RuntimeException('Subscription not found: ' . $subscriptionId); + } + $subscription->delete(); } catch (ClientException $e) { $response = $e->getResponse(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.51.0/src/Service/Api.php new/platformsh-cli-3.51.1/src/Service/Api.php --- old/platformsh-cli-3.51.0/src/Service/Api.php 2019-12-27 15:31:03.000000000 +0100 +++ new/platformsh-cli-3.51.1/src/Service/Api.php 2020-01-15 16:55:46.000000000 +0100 @@ -798,7 +798,7 @@ */ public function getHttpClient() { - return $this->getClient(false)->getConnector()->getClient(); + return $this->getClient()->getConnector()->getClient(); } /** ++++++ platformsh-cli-vendor.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/autoload.php new/vendor/autoload.php --- old/vendor/autoload.php 2019-12-27 21:30:06.731369084 +0100 +++ new/vendor/autoload.php 2020-01-15 22:17:20.781516873 +0100 @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit4287e775f4e3e4d0c2e97d9e389116fe::getLoader(); +return ComposerAutoloaderInit39e92c99682824c4989cae75c4e9fb03::getLoader(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/composer/autoload_real.php new/vendor/composer/autoload_real.php --- old/vendor/composer/autoload_real.php 2019-12-27 21:30:06.731369084 +0100 +++ new/vendor/composer/autoload_real.php 2020-01-15 22:17:20.781516873 +0100 @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit4287e775f4e3e4d0c2e97d9e389116fe +class ComposerAutoloaderInit39e92c99682824c4989cae75c4e9fb03 { private static $loader; @@ -19,15 +19,15 @@ return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit4287e775f4e3e4d0c2e97d9e389116fe', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit39e92c99682824c4989cae75c4e9fb03', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit4287e775f4e3e4d0c2e97d9e389116fe', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit39e92c99682824c4989cae75c4e9fb03', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit39e92c99682824c4989cae75c4e9fb03::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -48,19 +48,19 @@ $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe::$files; + $includeFiles = Composer\Autoload\ComposerStaticInit39e92c99682824c4989cae75c4e9fb03::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire4287e775f4e3e4d0c2e97d9e389116fe($fileIdentifier, $file); + composerRequire39e92c99682824c4989cae75c4e9fb03($fileIdentifier, $file); } return $loader; } } -function composerRequire4287e775f4e3e4d0c2e97d9e389116fe($fileIdentifier, $file) +function composerRequire39e92c99682824c4989cae75c4e9fb03($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/composer/autoload_static.php new/vendor/composer/autoload_static.php --- old/vendor/composer/autoload_static.php 2019-12-27 21:30:06.731369084 +0100 +++ new/vendor/composer/autoload_static.php 2020-01-15 22:17:20.781516873 +0100 @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe +class ComposerStaticInit39e92c99682824c4989cae75c4e9fb03 { public static $files = array ( '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', @@ -193,9 +193,9 @@ public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit39e92c99682824c4989cae75c4e9fb03::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit39e92c99682824c4989cae75c4e9fb03::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit39e92c99682824c4989cae75c4e9fb03::$classMap; }, null, ClassLoader::class); }