Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

/usr/bin/file instead of /usr/bin/git #759

Open
philipdbrown opened this issue Jul 27, 2017 · 4 comments
Open

/usr/bin/file instead of /usr/bin/git #759

philipdbrown opened this issue Jul 27, 2017 · 4 comments
Labels
Milestone

Comments

@philipdbrown
Copy link

philipdbrown commented Jul 27, 2017

After the first run of deploy, the deployment command is transformed from /usr/bin/file instead of /usr/bin/git. This is a bit confusing since the configuration is the same. Here is the output via -vvv:

├─ CreateRelease/Clone (Clones a fresh instance of the repository by VCS)
│  │  │  |  ├─ Cloning repository in "/var/www/myserver/releases/20170727203053"
│  │  │  |  ├─ $ bash --login -c 'echo ROCKETEER'
│  │  │  |  ├─ $ /usr/bin/file clone "git@myrepo.com:namespace/myrepo.git" "/var/www/myserver/releases/20170727203053" --branch="master"
│  │  │  |  ├─ [root@production] /usr/bin/file: unrecognized option '--branch=master'
│  │  │  |  ├─ [root@production] Usage: file [-bdFqikRlNnprsvyZ0] [--apple] [--extension] [--mime-encoding] [--mime-type]
│  │  │  |  ├─ [root@production]             [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
│  │  │  |  ├─ [root@production]        file -C [-m magicfiles]
│  │  │  |  ├─ [root@production]        file [--help]
│  │  │  |  ├─ An error occured: "Unable to clone the repository", while running:
│  │  │  |  ├─ /usr/bin/file: unrecognized option '--branch=master'
│  │  │  |  ├─ Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type]
│  │  │  |  ├─             [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
│  │  │  |  ├─        file -C [-m magicfiles]
│  │  │  |  ├─        file [--help]

Here is the VSC configuration output via debug:config :

"vcs" => array:7 [
    "vcs" => "git"
    "repository" => "git@mygitrepo.com:namespace/myrepo.git"
    "username" => "git"
    "password" => null
    "branch" => "master"
    "shallow" => false
    "submodules" => true
  ]

Any suggestions or a point in the right direction would be helpful.

@Anahkiasen
Copy link
Member

what the hell

@philipdbrown
Copy link
Author

I've had to use the Dev branch due to conflicts in dependencies with codeception. In the meantime, I'm going to put the deployment in its own folder to use a release version of rocketeer.

@miholeus
Copy link
Contributor

@Anahkiasen maybe it's time to use versions in labels? And it will be good to update github template for pull requests.

@Anahkiasen Anahkiasen added this to the 2.2.x milestone Jul 28, 2017
@philipdbrown
Copy link
Author

I'm getting the same issue with the stable version as well. Not sure where I'm going wrong. I'm using a GitLab-Runner to fire the command. I even tried to run it manually there. Just not sure where the /usr/bin/file is coming from. Thanks guys.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants