These are chat archives for composer/composer

27th
Apr 2016
mozgbrasil
@mozgbrasil
Apr 27 2016 00:06
This message was deleted
Solved
"ext-zend-guard-loader": "*",
nocaut
@dikiypac
Apr 27 2016 05:32
@mmic-bjohnson thanks
MarekL
@marek-l
Apr 27 2016 10:21
hi

pls I want to use my gitlab repository as packages repo, I added this to composer.json in my project:

"repositories": [
        {
            "type": "vcs",
            "url":  "git@gitlab.example.net:namespace/packages.git"
        }
    ]

then I created repository as described in url
there I have composer.json with this content:

{
  "name": "namespace/packages",
  "description": "My private packages",
  "type": "symfony-bundle",
  "minimum-stability": "alpha",
  "license": "proprietary",
  "authors": [
    {
      "name": "Example",
      "email": "email@example.net"
    }
  ],
  "extra": {
    "branch-alias": {
      "dev-master": "1.0-dev"
    }
  }
}

but composer update --prefer-source is saying this:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package namespace/packages 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.

any ideas? thanks ;)

Ben Johnson
@mmic-bjohnson
Apr 27 2016 14:07
@marek-l Your configuration looks okay to me. Try passing the -vvv switch to Composer. It'll tell you a lot more about what's failing.
MarekL
@marek-l
Apr 27 2016 14:26
@mmic-bjohnson thanks for reply, I figured that composer is reading my repository but did not found any packages, may be I have wrong directory structure in repository, is there any required structure for package in repository?
@mmic-bjohnson here is part of shell output:
Loading composer repositories with package information
Executing command (~/.composer/cache/vcs/git-gitlab.example.net-namespace-packages.git/): git rev-parse --git-dir
Executing command (~/.composer/cache/vcs/git-gitlab.example.net-namespace-packages.git/): git remote -v
Executing command (~/.composer/cache/vcs/git-gitlab.example.net-namespace-packages.git/): git remote set-url origin 'git@gitlab.example.net:namespace/packages.git' && git remote update --prune origin
Executing command (~/.composer/cache/vcs/git-gitlab.example.net-namespace-packages.git/): git show-ref --tags
Executing command (~/.composer/cache/vcs/git-gitlab.example.net-namespace-packages.git/): git branch --no-color --no-abbrev -v
Executing command (~/.composer/cache/vcs/git-gitlab.example.net-namespace-packages.git/): git branch --no-color
Executing command (~/.composer/cache/vcs/git-gitlab.example.net-namespace-packages.git/): git show 'master':composer.json
Executing command (~/.composer/cache/vcs/git-gitlab.example.net-namespace-packages.git/): git log -1 --format=%at 'master'
Reading composer.json of namespace/packages (master)
Reading ~/.composer/cache/repo/git-gitlab.example.net-namespace-packages.git/290ea394797179b981c58a806616af6ff86afc9a from cache
Importing branch master (dev-master)
Ben Johnson
@mmic-bjohnson
Apr 27 2016 15:00
@marek-l What type of repository resides at git@gitlab.example.net:namespace/packages.git ? Is that a "Composer package", or just a standard Git project repository?
I just want to ensure that you're not trying to reference a Packagist-style repository there.
MarekL
@marek-l
Apr 27 2016 15:06
@mmic-bjohnson it is standard git repo
Ben Johnson
@mmic-bjohnson
Apr 27 2016 15:06
@marek-l Okay, good... as far as a required structure is concerned, I think the only requirement is to have a composer.json at the root of the repository.
Can you show some more of that shell output? Is there more information as to why the constraint fails?
MarekL
@marek-l
Apr 27 2016 15:08
@mmic-bjohnson I have composer.json at root of repo
Ben Johnson
@mmic-bjohnson
Apr 27 2016 15:08
What's that type you're using, symfony-bundle? That has an impact.
Mine, for example, use the composer type.
MarekL
@marek-l
Apr 27 2016 15:10
@mmic-bjohnson hmm, oki I will try, thank you very much for help for now, I must go off for a few hours
Ben Johnson
@mmic-bjohnson
Apr 27 2016 15:10
No, sorry, I take that back; I am using a custom type there in several of mine. That looks okay, then.
Okay, sure! Any time
mozgbrasil
@mozgbrasil
Apr 27 2016 20:17

Hello good afternoon

Can someone help me

I created the composer.json file with the following content

{
   "minimum-stability": "alpha",
   "require": {
      "mozgbrasil/magento-base-php56": "*"
   }
}

In the terminal ran the command

composer install -vvv

But you downloaded the package in an outdated version

 mozgbrasil/framework-php56 (0.1.0-beta9)

We see in https://packagist.org/packages/mozgbrasil/magento-base-php56

being informed

"require" : {
    "mozgbrasil/framework-php56": "0.1.0-beta11"
}

Because the composer is not picking up this version that I set

mozgbrasil
@mozgbrasil
Apr 27 2016 20:31
?
How to fix this occurrence?
Ciaran McNulty
@ciaranmcnulty
Apr 27 2016 23:19
One is mavento