Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide automated updates for all commands downloading from github releases #332

Open
jakzal opened this issue Jan 22, 2021 · 4 comments
Open

Comments

@jakzal
Copy link
Owner

jakzal commented Jan 22, 2021

Currently only PHAR downloads are supported, which means regular file downloads won't be automatically updated (like #331).

@atrakic
Copy link

atrakic commented Jun 1, 2021

I wanted to give it a try with latest composer image:

docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp composer:latest bash
bash-5.1# php -v
PHP 8.0.6 (cli) (built: May  7 2021 20:48:50) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.6, Copyright (c) Zend Technologies
bash-5.1# curl -s https://api.github.com/repos/jakzal/toolbox/releases/latest \
  | grep "browser_download_url.*toolbox.phar" \
  | cut -d '"' -f 4 \
  | xargs curl -Ls -o toolbox \
  && chmod +x toolbox
bash-5.1# ./toolbox install
You are already using the latest available Composer version 2.1.1 (stable channel).
/usr/local/bin/phive
Changed current directory to /tmp
You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3.
Using version ^1.4 for bamarni/composer-bin-plugin
./composer.json has been updated
Running composer update bamarni/composer-bin-plugin
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file
Nothing to install, update or remove
Generating autoload files
Changed current directory to /tmp
Phive 0.14.5 - Copyright (C) 2015-2021 by Arne Blankerts, Sebastian Heuer and Contributors
[ERROR]   No executable gpg binary found. 
[ERROR]    Either install gpg or enable the gnupg extension in PHP.

@jakzal
Copy link
Owner Author

jakzal commented Jun 1, 2021

@atrakic I'm not sure what you're trying to do.

@atrakic
Copy link

atrakic commented Jun 4, 2021

@jakzal I have existing symfony project that I mount with composer:latest and I was thinking to use your toolbox to run some tests with, but it fails. Pls note I have updated my initial comment. Thx

@jakzal
Copy link
Owner Author

jakzal commented Jun 4, 2021

@atrakic I see, so it's unrelated to the issue you're commenting on. Can you please create a new issue and provide as much detail as you can?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants