These are chat archives for composer/composer

7th
Nov 2016
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 12:17

Hi Guys,

I have this branch alias in my json file

    "extra": {
        "branch-alias": {
            "dev-master": "0.1.x-dev"
        }
    }

and in the gitlab the repo has two release; 0.1.0 and 0.1.1, So what release it will fetch ? 0.1.0 or 0.1.1

Rob
@alcohol
Nov 07 2016 12:53
the most recent
wait
branch-alias has nothing to do with that
it depends on your require constraint, what version will be fetched
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 12:56
@alcohol on gilab In repo there are two branches dev and master.
and two tags 0.1.0 from master and 0.1.1 from dev.
"require": { "vendor/bundle": "dev-master" },
and alias as defined above.
I believe it will should fetch the tag created from dev branch?
Rob
@alcohol
Nov 07 2016 12:58
dev-master will install the master branch
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 12:59
@alcohol and what this means
0.1.x-dev
Rob
@alcohol
Nov 07 2016 12:59
it means the master branch
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 12:59
So i have created another tage as 0.1.1 from master branch.
and then composer update.
it still fetch from 0.1.0 tag from master branch.
Rob
@alcohol
Nov 07 2016 13:00
that is impossible
you just said you tagged 0.1.1 on dev branch
also it should not fetch 0.1.0
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 13:01
yes i did that too.
Rob
@alcohol
Nov 07 2016 13:01
it should fetch master
how can you do that too?
you cannot have the same tag twice
it is impossible
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 13:01
but i deleted that now, and created 0.1.1 from master branch now.
Rob
@alcohol
Nov 07 2016 13:02
ok
what does composer show return?
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 13:02
but it still download 0.1.0
dev-master b7c7552
i should create new tag from latest commit?
Rob
@alcohol
Nov 07 2016 13:03
no
your requirement is dev-master
so it installs master
i already told you
it will never install a tag if you require dev-master
it will only install master
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 13:04
so what is wrong here.
Rob
@alcohol
Nov 07 2016 13:04
nothing
it is doing exactly what you are asking it to do
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 13:04
i doesnt download the latest master code.
Rob
@alcohol
Nov 07 2016 13:05
it does
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 13:05
but it doesn't . it's a private bundle of my own.
i push some new code to it.
then composer update in my project.
but it does not fetch new code,
Rob
@alcohol
Nov 07 2016 13:06
show the complete output of your composer update command
pastebin it
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 13:15
let me run
[Composer \ Downloader \ TransportException]
The "https://packagist.org/packages.json"
file could not be downloaded (HTTP/1.1 404 Not Found)
got this on composer update
Rob
@alcohol
Nov 07 2016 13:18
well that is not helpful for me
also an entirely different problem
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 14:14
What does this commit mean dev-master b7c7552
then
Rob
@alcohol
Nov 07 2016 14:14
it means that you are running the master branch at that commit
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 14:15
my commit is after that.
Rob
@alcohol
Nov 07 2016 14:15
then run composer update
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 14:17
i thing it got it,
in composer lock file, the commit is defined in reference parameter.
Rob
@alcohol
Nov 07 2016 14:20
that does not affect composer update
Muhammad Taqi Hassan
@muhammadtaqi
Nov 07 2016 16:03
Thanks @alcohol .