Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.www.php > #22059 > unrolled thread
| Started by | rino <rino@mio.mio> |
|---|---|
| First post | 2018-05-15 13:01 +0200 |
| Last post | 2018-05-16 12:54 +0200 |
| Articles | 8 — 2 participants |
Back to article view | Back to it.comp.www.php
scaricare package con composer rino <rino@mio.mio> - 2018-05-15 13:01 +0200
Re: scaricare package con composer Alessandro Pellizzari <shuriken@amiran.it> - 2018-05-15 12:47 +0100
Re: scaricare package con composer rino <rino@mio.mio> - 2018-05-15 14:53 +0200
Re: scaricare package con composer rino <rino@mio.mio> - 2018-05-15 15:24 +0200
Re: scaricare package con composer Alessandro Pellizzari <shuriken@amiran.it> - 2018-05-15 17:33 +0100
Re: scaricare package con composer rino <rino@mio.mio> - 2018-05-15 20:42 +0200
Re: scaricare package con composer Alessandro Pellizzari <shuriken@amiran.it> - 2018-05-16 10:10 +0100
Re: scaricare package con composer rino <rino@mio.mio> - 2018-05-16 12:54 +0200
| From | rino <rino@mio.mio> |
|---|---|
| Date | 2018-05-15 13:01 +0200 |
| Subject | scaricare package con composer |
| Message-ID | <pdeemd$e8u$2@gioia.aioe.org> |
Premetto che la mia domanda non riguarda proprio php, ma composer. Ecco il mio package https://packagist.org/packages/rino1/test Ma non riesco a scaricarlo $ composer require rino1/test [InvalidArgumentException] Could not find package rino1/test at any version for your minimum-stability (stable). Check the package spelling or your minim um-stability La clonazione però funziona $ git clone https://github.com/rino1/test.git Cloning into 'test'... Come mai quindi non riesco a scaricarlo con composer?
[toc] | [next] | [standalone]
| From | Alessandro Pellizzari <shuriken@amiran.it> |
|---|---|
| Date | 2018-05-15 12:47 +0100 |
| Message-ID | <flvvmpFf499U1@mid.individual.net> |
| In reply to | #22059 |
On 15/05/2018 12:01, rino wrote: > https://packagist.org/packages/rino1/test > > Ma non riesco a scaricarlo > > $ composer require rino1/test > > [InvalidArgumentException] > Could not find package rino1/test at any version for your > minimum-stability (stable). Check the package spelling or your minim > um-stability Il tuo pacchetto non ha una versione stabile, ma solo dev-master Onestamente non so se si possa installare da CLI. Forse con --prefer-source ma non ho mai provato. O assegni una versione "stable" al pacchetto o devi scrivere a mano il composer.json per includerlo da dev-master Bye.
[toc] | [prev] | [next] | [standalone]
| From | rino <rino@mio.mio> |
|---|---|
| Date | 2018-05-15 14:53 +0200 |
| Message-ID | <pdel7v$r83$1@gioia.aioe.org> |
| In reply to | #22060 |
Il 15/05/2018 13:47, Alessandro Pellizzari ha scritto: > > Il tuo pacchetto non ha una versione stabile, ma solo dev-master Cioè? > Onestamente non so se si possa installare da CLI. ????????????? > Forse con --prefer-source ma non ho mai provato. $ composer require --prefer-dist rino1/test [InvalidArgumentException] Could not find package rino1/test at any version for your minimum-stability (stable). Check the package spelling or your minim um-stability > O assegni una versione "stable" al pacchetto In che modo? > o devi scrivere a mano il > composer.json per includerlo da dev-master Si, certo, boh :D Il problema e che sono solo all'inizio e ne capisco poco :) Composer lo so usare ma per scaricare/gestire i pacchetti degli altri. Pensavo fosse semplice anche creare un mio pacchetto, invece...
[toc] | [prev] | [next] | [standalone]
| From | rino <rino@mio.mio> |
|---|---|
| Date | 2018-05-15 15:24 +0200 |
| Message-ID | <pden2o$ueg$1@gioia.aioe.org> |
| In reply to | #22061 |
Il 15/05/2018 14:53, rino ha scritto: > >> Forse con --prefer-source ma non ho mai provato. > > $ composer require --prefer-dist rino1/test > [InvalidArgumentException] > Could not find package rino1/test at any version for your > minimum-stability (stable). Check the package spelling or your minim > um-stability Anche con --prefer-source stessa cosa
[toc] | [prev] | [next] | [standalone]
| From | Alessandro Pellizzari <shuriken@amiran.it> |
|---|---|
| Date | 2018-05-15 17:33 +0100 |
| Message-ID | <fm0gf3Fipu1U1@mid.individual.net> |
| In reply to | #22061 |
On 15/05/2018 13:53, rino wrote: >> O assegni una versione "stable" al pacchetto > > In che modo? https://packagist.org/about > Il problema e che sono solo all'inizio e ne capisco poco :) > Composer lo so usare ma per scaricare/gestire i pacchetti degli altri. > Pensavo fosse semplice anche creare un mio pacchetto, invece... Per taggare una release con una versione usi `git tag`, poi quando fai il push devi specificare `git push --tags origin master` (o il branch che è). Se hai configurato l'hook per packagist nel tuo repo git, quando pushi, packagist viene notificato automaticamente e la versione viene resa disponibile da composer. Bye.
[toc] | [prev] | [next] | [standalone]
| From | rino <rino@mio.mio> |
|---|---|
| Date | 2018-05-15 20:42 +0200 |
| Message-ID | <pdf9no$33d$1@gioia.aioe.org> |
| In reply to | #22063 |
Il 15/05/2018 18:33, Alessandro Pellizzari ha scritto: > >> Il problema e che sono solo all'inizio e ne capisco poco :) >> Composer lo so usare ma per scaricare/gestire i pacchetti degli altri. >> Pensavo fosse semplice anche creare un mio pacchetto, invece... > > Per taggare una release con una versione usi `git tag`, poi quando fai > il push devi specificare `git push --tags origin master` (o il branch > che è). > > Se hai configurato l'hook per packagist nel tuo repo git, quando pushi, > packagist viene notificato automaticamente e la versione viene resa > disponibile da composer. $ git clone https://github.com/rino1/test.git Cloning into 'test'... remote: Counting objects: 87, done. remote: Compressing objects: 100% (21/21), done. remote: Total 87 (delta 3), reused 15 (delta 1), pack-reused 62 Unpacking objects: 100% (87/87), done. Checking connectivity... fatto. $ cd test/ $ git tag 5.0.0 $ git push --tags origin master Total 0 (delta 0), reused 0 (delta 0) To https://github.com/rino1/test.git * [new tag] 5.0.0 -> 5.0.0 $ composer req rino1/test [InvalidArgumentException] Could not find package rino1/test at any version for your minimum-stability (stable). Check the package spelling or your minim um-stability
[toc] | [prev] | [next] | [standalone]
| From | Alessandro Pellizzari <shuriken@amiran.it> |
|---|---|
| Date | 2018-05-16 10:10 +0100 |
| Message-ID | <fm2asgFbakU1@mid.individual.net> |
| In reply to | #22064 |
On 15/05/2018 19:42, rino wrote: > $ composer req rino1/test > [InvalidArgumentException] > Could not find package rino1/test at any version for your > minimum-stability (stable). Check the package spelling or your minim > um-stability Non hai letto il link che ti ho messo. $ composer require rino1/test Using version ^5.0 for rino1/test ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 1 install, 0 updates, 0 removals - Installing rino1/test (5.0.0): Downloading (100%) Writing lock file Generating autoload files
[toc] | [prev] | [next] | [standalone]
| From | rino <rino@mio.mio> |
|---|---|
| Date | 2018-05-16 12:54 +0200 |
| Message-ID | <pdh2lr$rke$1@gioia.aioe.org> |
| In reply to | #22065 |
Il 16/05/2018 11:10, Alessandro Pellizzari ha scritto: > > $ composer require rino1/test > Using version ^5.0 for rino1/test > ./composer.json has been created > Loading composer repositories with package information > Updating dependencies (including require-dev) > Package operations: 1 install, 0 updates, 0 removals > - Installing rino1/test (5.0.0): Downloading (100%) > Writing lock file > Generating autoload files Adesso funziona anche a me. Forse bisognava solo aspettare un po'. E poi in composer.json non è nemmeno necessario specificare la versione :)
[toc] | [prev] | [standalone]
Back to top | Article view | it.comp.www.php
csiph-web