cli tool to sync php composer packages from the vcs repo registered in packagist to a private stash repo
update cfg.yaml
(and optionally copy it to its default location: ~/.composer-sync.yaml
)
composer-sync [OPTIONS]... VENDOR/PACKAGE
-u sync all packages, not just new one
-r recursively load transitive dependencies
-dryrun show add/sync/skip but don't do anything
-config specify a config other that ~/.composer-sync.yaml
$ composer-sync login
Authenticate With Stash:
Login: foo
Password:
Auth Updated in '/home/ben/.composer-sync.yaml'
$ composer-sync fliglio/web
add: fliglio_web
$ composer-sync -r fliglio/web
skip: fliglio_web
add: doctrine_cache
add: symfony_validator
add: symfony_translation
add: symfony_polyfill-mbstring
add: fliglio_http
add: doctrine_annotations
add: doctrine_lexer
$ composer-sync -r fliglio/web
skip: fliglio_web
skip: doctrine_cache
skip: symfony_validator
skip: symfony_translation
skip: symfony_polyfill-mbstring
skip: fliglio_http
skip: doctrine_annotations
skip: doctrine_lexer
$ composer-sync -u -r fliglio/web
sync: fliglio_web
sync: doctrine_cache
sync: symfony_validator
sync: symfony_translation
sync: symfony_polyfill-mbstring
sync: fliglio_http
sync: doctrine_annotations
sync: doctrine_lexer
- Install Stash
- create user
foo
with passwordasdf
- configure an ssh key for
foo
- create project with slug
UT
and grantfoo
write access
- create user
- Install satis-go
- install
foo
user's ssh key with the user runningsatis-go
(connect to stash to accept key)
- install
- Run tests serially to accomodate single stash instance
go test -p=1 ./...