0 Replies Latest reply on May 23, 2017 6:34 PM by DavidK@MCG

    Build trying to clone from 'git+https://github.com/' fails

    DavidK@MCG

      I added the newrelic-cordova-plugin to my app (ID: 2128060) and the entry in config.xml looks like this:

       

      <plugin name="newrelic-cordova-plugin" spec="https://github.com/newrelic/newrelic-cordova-plugin.git">

              <variable name="IOS_APP_TOKEN" value="{token}"/>

              <variable name="ANDROID_APP_TOKEN" value="{token}"/>

              <variable name="PLUGIN_VERSION" value="5.0.0"/>

      </plugin>

       

      However, when the build runs, it fails, with the following message in the logs:

       

      "plugman install --platform ios --project /project --plugin git+https://github.com/newrelic/newrelic-cordova-plugin.git --var IOS_APP_TOKEN={token} --var ANDROID_APP_TOKEN={token} --var PLUGIN_VERSION=5.0.0": Fetching plugin "git+https://github.com/newrelic/newrelic-cordova-plugin.git" via git clone

      Failed to fetch plugin git+https://github.com/newrelic/newrelic-cordova-plugin.git via git.

      Either there is a connection problems, or plugin spec is incorrect:

        Error: git: Command failed with exit code 128 Error output:

      Cloning into '/var/folders/fp/3wvbbc4n2xxf1dt9bfpqtdd00000gn/T/git/1495587849906'...

      fatal: Unable to find remote helper for 'git+https'

       

      My question is: why is it transforming the URL from https to git+https and how can I keep it from doing that? I use another plugin with a github spec and it gets cloned properly, using just https (it doesn't have any variables... basically the only difference).