rocketeer icon indicating copy to clipboard operation
rocketeer copied to clipboard

/usr/bin/file instead of /usr/bin/git

Open philipdbrown opened this issue 6 years ago • 4 comments

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 "[email protected]: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" => "[email protected]: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.

philipdbrown avatar Jul 27 '17 20:07 philipdbrown

what the hell

Anahkiasen avatar Jul 28 '17 07:07 Anahkiasen

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.

philipdbrown avatar Jul 28 '17 11:07 philipdbrown

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

miholeus avatar Jul 28 '17 12:07 miholeus

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.

philipdbrown avatar Jul 28 '17 13:07 philipdbrown