Vauxoo / travis2docker

This is a Library to transform travis to docker file
BSD 2-Clause "Simplified" License
13 stars 15 forks source link

[3.0.8] fatal: Couldn't find remote ref #76

Closed osvalr closed 7 years ago

osvalr commented 7 years ago

Hi, when I run travis2docker with our alias (t2d), I'm just getting the following error from a client repo's branch.

command used:

$ t2d git@github.com:Vauxoo-dev/superpet.git 9.0-dummy-superpet_pull-4-addonsvauxoo-pull-1117-osval  
$ ./10-build.sh --no-cache                                                                                                                                                                                                                                    ⏎
Sending build context to Docker daemon 58.37 kB
Step 1 : FROM vauxoo/odoo-80-image-shippable-auto
 ---> 2e486c7af010
Step 2 : ADD files/entrypoint.sh /entrypoint.sh
 ---> 459568baaee9
Removing intermediate container ce4cb2451810
Step 3 : RUN chown -R root:root /entrypoint.sh
 ---> Running in 9ee997a34db8
 ---> c9435756d528
Removing intermediate container 9ee997a34db8
Step 4 : ENV HOME /root
 ---> Running in a908da032dc9
 ---> 0ff70b4f9a48
Removing intermediate container a908da032dc9
Step 5 : ADD .ssh $HOME/.ssh
 ---> cdf3e92829e9
Removing intermediate container f46a45bd5af4
Step 6 : RUN chown -R root:root $HOME/.ssh
 ---> Running in ea6a7d9ac227
 ---> 5af0c199ea77
Removing intermediate container ea6a7d9ac227
Step 7 : ADD ./files/install /install
 ---> c79faecdb248
Removing intermediate container c78c5e9227d0
Step 8 : RUN chown -R root:root /install
 ---> Running in 27d45c311cc5
 ---> 56edf3674b50
Removing intermediate container 27d45c311cc5
Step 9 : ADD ./files/script /script
 ---> 5a1816d94987
Removing intermediate container 9167a8344502
Step 10 : RUN chown -R root:root /script
 ---> Running in be2fba48edc2
 ---> 5bf02d3a9aba
Removing intermediate container be2fba48edc2
Step 11 : ADD ./files/after_success /after_success
 ---> d60adc02b374
Removing intermediate container ee141d8ed6e7
Step 12 : RUN chown -R root:root /after_success
 ---> Running in 9d99f4711aea
 ---> fe0bfd0d0b56
Removing intermediate container 9d99f4711aea
Step 13 : RUN apt-get update && apt-get install   expect-dev   python-lxml   python-simplejson   python-yaml   poppler-utils   antiword && echo "packages installed"
 ---> Running in 8fb886ef2471
Get:1 http://apt.postgresql.org trusty-pgdg InRelease [46.5 kB]
Get:2 http://deb.nodesource.com trusty InRelease [3,914 B]
Ign http://archive.ubuntu.com trusty InRelease
Get:3 http://ppa.launchpad.net trusty InRelease [15.4 kB]
Get:4 http://apt.postgresql.org trusty-pgdg/main amd64 Packages [112 kB]
Get:5 http://deb.nodesource.com trusty/main amd64 Packages [964 B]
Get:6 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:7 http://ppa.launchpad.net trusty InRelease [15.5 kB]
Get:8 http://ppa.launchpad.net trusty/main amd64 Packages [3,424 B]
Get:9 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Get:10 http://ppa.launchpad.net trusty/main amd64 Packages [20.5 kB]
Get:11 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:12 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1,145 kB]
Get:13 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [502 kB]
Get:14 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [15.2 kB]
Get:15 http://archive.ubuntu.com trusty-security/main amd64 Packages [681 kB]
Get:16 http://archive.ubuntu.com trusty-security/universe amd64 Packages [185 kB]
Get:17 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [4,015 B]
Get:18 http://archive.ubuntu.com trusty Release [58.5 kB]
Get:19 http://archive.ubuntu.com trusty/main amd64 Packages [1,743 kB]
Get:20 http://archive.ubuntu.com trusty/universe amd64 Packages [7,589 kB]
Get:21 http://archive.ubuntu.com trusty/multiverse amd64 Packages [169 kB]
Fetched 12.4 MB in 4s (2,579 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
expect-dev is already the newest version.
antiword is already the newest version.
poppler-utils is already the newest version.
Suggested packages:
  python-lxml-dbg
Recommended packages:
  libjs-jquery
The following NEW packages will be installed:
  python-lxml python-simplejson python-yaml
0 upgraded, 3 newly installed, 0 to remove and 50 not upgraded.
Need to get 786 kB of archives.
After this operation, 3,256 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-lxml amd64 3.3.3-1ubuntu0.1 [629 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main python-simplejson amd64 3.3.1-1ubuntu6 [54.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-yaml amd64 3.10-4ubuntu0.1 [102 kB]
Fetched 786 kB in 1s (444 kB/s)
Selecting previously unselected package python-lxml.
(Reading database ... 35167 files and directories currently installed.)
Preparing to unpack .../python-lxml_3.3.3-1ubuntu0.1_amd64.deb ...
Unpacking python-lxml (3.3.3-1ubuntu0.1) ...
Selecting previously unselected package python-simplejson.
Preparing to unpack .../python-simplejson_3.3.1-1ubuntu6_amd64.deb ...
Unpacking python-simplejson (3.3.1-1ubuntu6) ...
Selecting previously unselected package python-yaml.
Preparing to unpack .../python-yaml_3.10-4ubuntu0.1_amd64.deb ...
Unpacking python-yaml (3.10-4ubuntu0.1) ...
Setting up python-lxml (3.3.3-1ubuntu0.1) ...
Setting up python-simplejson (3.3.1-1ubuntu6) ...
Setting up python-yaml (3.10-4ubuntu0.1) ...
packages installed
 ---> 539df185d0ec
Removing intermediate container 8fb886ef2471
Step 14 : USER root
 ---> Running in c3a9137c6365
 ---> 48cc1c38446f
Removing intermediate container c3a9137c6365
Step 15 : ENV TRAVIS_REPO_SLUG Vauxoo-dev/superpet
 ---> Running in 1ea35d06f66b
 ---> ec98076c08ca
Removing intermediate container 1ea35d06f66b
Step 16 : ENV TRAVIS_BUILD_DIR ${HOME}/build/${TRAVIS_REPO_SLUG}
 ---> Running in 40a7b4bdb515
 ---> d9ce06e86503
Removing intermediate container 40a7b4bdb515
Step 17 : RUN git init ${TRAVIS_BUILD_DIR}     && cd ${TRAVIS_BUILD_DIR}     && git remote add origin git@github.com:Vauxoo-dev/superpet.git     && git fetch --update-head-ok -p origin '+refs/9.0-dummy-superpet_pull-4-addonsvauxoo-pull-1117-osval/head:refs/9.0-dummy-superpet_pull-4-addonsvauxoo-pull-1117-osval'     && git checkout -qf 9.0-dummy-superpet_pull-4-addonsvauxoo-pull-1117-osval     && git config --global user.email "None"     && git config --global user.name "None"     && git remote add vauxoo git@github.com:vauxoo/superpet.git     && git remote add vauxoo-dev git@github.com:vauxoo-dev/superpet.git     && echo 1  # TODO: Migrate to '&&'.join([for])
 ---> Running in a565451aefbc
Initialized empty Git repository in /root/build/Vauxoo-dev/superpet/.git/
fatal: Couldn't find remote ref refs/9.0-dummy-superpet_pull-4-addonsvauxoo-pull-1117-osval/head
The command '/bin/sh -c git init ${TRAVIS_BUILD_DIR}     && cd ${TRAVIS_BUILD_DIR}     && git remote add origin git@github.com:Vauxoo-dev/superpet.git     && git fetch --update-head-ok -p origin '+refs/9.0-dummy-superpet_pull-4-addonsvauxoo-pull-1117-osval/head:refs/9.0-dummy-superpet_pull-4-addonsvauxoo-pull-1117-osval'     && git checkout -qf 9.0-dummy-superpet_pull-4-addonsvauxoo-pull-1117-osval     && git config --global user.email "None"     && git config --global user.name "None"     && git remote add vauxoo git@github.com:vauxoo/superpet.git     && git remote add vauxoo-dev git@github.com:vauxoo-dev/superpet.git     && echo 1  # TODO: Migrate to '&&'.join([for])' returned a non-zero code: 128

I just run docker container with a565451aefbc and tried to run manually every command in the step and noticed that

git fetch --update-head-ok -p origin '+refs/9.0-dummy-superpet_pull-4-addonsvauxoo-pull-1117-osval/head:refs/9.0-dummy-superpet_pull-4-addonsvauxoo-pull-1117-osval'

is the conflicting command

moylop260 commented 7 years ago

Thanks for report. It's a bug with branches named *pull* I will take care about this case. Thanks!

osvalr commented 7 years ago

@moylop260 thanks for the fast reply