You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If deptrac is being executed by a user who has no write permissions on the actual deptrac binary, the following exception is being thrown:
Fatal error: Uncaught Humbug\SelfUpdate\Exception\FilesystemException: The current phar file is not writeable and cannot be replaced: /usr/local/bin/deptrac. in phar:///usr/local/bin/deptrac/vendor/padraic/phar-updater/src/Updater.php:438
Stack trace:
#0 phar:///usr/local/bin/deptrac/vendor/padraic/phar-updater/src/Updater.php(101): Humbug\SelfUpdate\Updater->setLocalPharFile('/usr/local/bin/...')
#1 [internal function]: Humbug\SelfUpdate\Updater->__construct(NULL, false)
#2 phar:///usr/local/bin/deptrac/vendor/symfony/dependency-injection/ContainerBuilder.php(1159): ReflectionClass->newInstanceArgs(Array)
#3 phar:///usr/local/bin/deptrac/vendor/symfony/dependency-injection/ContainerBuilder.php(1266): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), Array)
#4 phar:///usr/local/bin/deptrac/vendor/symfony/dependency-injection/ContainerBuilder.php(1221): Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices(Object(Symfony\Compo in phar:///usr/local/bin/deptrac/vendor/padraic/phar-updater/src/Updater.php on line 438
Does the self-update mechanism perhaps trigger on every execution? This wasn't an issue before. Our last CI build from one week ago (June 21) ran fine, new builds fail because of this error. In our case, deptrac is being ran within a prepared Docker container, where /usr/local/bin/deptrac is root-owned and the UID running the tool is the UID of our Jenkins user.
The text was updated successfully, but these errors were encountered:
If
deptrac
is being executed by a user who has no write permissions on the actualdeptrac
binary, the following exception is being thrown:Does the self-update mechanism perhaps trigger on every execution? This wasn't an issue before. Our last CI build from one week ago (June 21) ran fine, new builds fail because of this error. In our case,
deptrac
is being ran within a prepared Docker container, where /usr/local/bin/deptrac is root-owned and the UID running the tool is the UID of our Jenkins user.The text was updated successfully, but these errors were encountered: