Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #21831

allestire un git-server su nas della Synology

From Fabio Set <ilfab@non.so>
Newsgroups it.comp.www.php
Subject allestire un git-server su nas della Synology
Date 2018-01-08 10:53 +0100
Organization Aioe.org NNTP Server
Message-ID <p2vf2v$n6j$1@gioia.aioe.org> (permalink)

Show all headers | View raw


Buongiorno, la mia domanda non riguarda proprio php, siccome non trovo 
un posto più adatto...

Dunque, ho un nas della Synology e seguendo questa guida
https://www.synology.com/it-it/knowledgebase/DSM/help/Git/git
ho creato un repository (/volume1/git/test).

Quindi uscendo dal terminale ssh e tornando sul mio computer, provo se 
funziona:

$ git clone nas:/volume1/git/test
Cloning into 'test'...
warning: Sembra che tu abbia clonato un repository vuoto.
Checking connectivity... fatto.

Tutto ok, però invece di clonare, vorrei scaricare il package tramite 
composer.

Quindi prima di tutto preparo il file composer.json:

{
     "name": "test/test",
     "version": "1.1.1"
}

Poi do alcuni comandi:

$ git add .
$ git commit -m test-commit
$ git push origin master

Quindi ho appena spinto il repo sul server con tutte le modifiche!!!

Adesso, come già accennato, voglio provare ad importare tale repo in un 
nuovo progetto:

$ mkdir /tmp/new-proj
$ cd /tmp/new-proj

Creo il solito composer.json:

{
     "require": {
         "test/test": "*"
     },
     "repositories": {
         "test/test": {
             "type": "vcs",
             "url": "nas:/volume1/git/test"
         }
     }
}

Quindi do il comando:

$ composer update
You are running composer with xdebug enabled. This has a major impact on 
runtime performance. See https://getcomposer.org/xdebug
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

   Problem 1
     - The requested package test/test could not be found in any 
version, there may be a typo in the package name.

Potential causes:
  - A typo in the package name
  - The package is not available in a stable-enough version according to 
your minimum-stability setting
    see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for 
more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for 
further common problems.


Come vedete c'è qualcosa che non va.
Perchè?

Back to it.comp.www.php | Previous | NextNext in thread | Find similar | Unroll thread


Thread

allestire un git-server su nas della Synology Fabio Set <ilfab@non.so> - 2018-01-08 10:53 +0100
  Re: allestire un git-server su nas della Synology Alessandro Pellizzari <shuriken@amiran.it> - 2018-01-08 10:03 +0000
    Re: allestire un git-server su nas della Synology Fabio Set <ilfab@non.so> - 2018-01-08 11:47 +0100
      Re: allestire un git-server su nas della Synology Leonardo Serni <lserni@gmail.com> - 2018-01-08 14:11 +0100
        Re: allestire un git-server su nas della Synology Fabio Set <ilfab@non.so> - 2018-01-08 14:25 +0100
          Re: allestire un git-server su nas della Synology Leonardo Serni <lserni@gmail.com> - 2018-01-08 17:25 +0100
            Re: allestire un git-server su nas della Synology Fabio Set <ilfab@non.so> - 2018-01-08 17:50 +0100
          Re: allestire un git-server su nas della Synology Alessandro Pellizzari <shuriken@amiran.it> - 2018-01-08 16:45 +0000
            Re: allestire un git-server su nas della Synology Fabio Set <ilfab@non.so> - 2018-01-08 18:30 +0100
              Re: allestire un git-server su nas della Synology Alessandro Pellizzari <shuriken@amiran.it> - 2018-01-09 10:15 +0000
                Re: allestire un git-server su nas della Synology Fabio Set <ilfab@non.so> - 2018-01-09 14:03 +0100
                Re: allestire un git-server su nas della Synology Fabio Set <ilfab@non.so> - 2018-01-10 12:40 +0100
                Re: allestire un git-server su nas della Synology Fabio Set <ilfab@non.so> - 2018-01-15 09:09 +0100

csiph-web