Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 59A43200D26 for ; Fri, 20 Oct 2017 15:14:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 57DB4160BCB; Fri, 20 Oct 2017 13:14:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7637F1609E1 for ; Fri, 20 Oct 2017 15:14:05 +0200 (CEST) Received: (qmail 73080 invoked by uid 500); 20 Oct 2017 13:14:04 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 73069 invoked by uid 99); 20 Oct 2017 13:14:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2017 13:14:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CCF7B18080C for ; Fri, 20 Oct 2017 13:14:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id xODj0ILWBMA4 for ; Fri, 20 Oct 2017 13:14:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5767B5FBEA for ; Fri, 20 Oct 2017 13:14:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 85A0BE0E80 for ; Fri, 20 Oct 2017 13:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3CABC21EE7 for ; Fri, 20 Oct 2017 13:14:00 +0000 (UTC) Date: Fri, 20 Oct 2017 13:14:00 +0000 (UTC) From: "Dennis Patzer (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-13475) Set an alternative user for cordova plugin add via git repo MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 20 Oct 2017 13:14:06 -0000 [ https://issues.apache.org/jira/browse/CB-13475?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Dennis Patzer updated CB-13475: ------------------------------- Description:=20 Hello, I just tried to retrieve my cordova plugin which lives in a private repo fr= om git ssh url. Therefore I want to use the SSH url which is the following: bq. myuser@bitbucket.org:myuser/cordova-plugin-xyz.git As you can see the user is myuser. If I now run bq. cordova plugin add git+ssh://myuser@bitbucket.org/myuser/cordova-plugin= -xyz.git I get the following error: {quote}npm ERR! Command failed: git clone --template=3D/home/localuser/.npm= /_git-remotes/_templates --mirror ssh://git@bitbucket.org/myuser/cordova-pl= ugin-xyz.git /home/localuser/.npm/_git-remotes/ssh-git-bitbucket-org-myuser= -cordova-plugin-xyz-git-160b6243 npm ERR! Klone in Bare-Repository '/home/l= ocaluser/.npm/_git-remotes/ssh-git-bitbucket-org-myuser-cordova-plugin-xyz-= git-160b6243' ... npm ERR! repository access denied. npm ERR! fatal: Could = not read from remote repository.{quote} As you can see cordova tries to get the plugin by the url bq. ssh://git@bitbucket.org/myuser/cordova-plugin-xyz.git which sets git as user which is wrong in my case. The problem is that I have multiple accounts for bitbucket and also 2 ssh k= eys on my machine. Unfortunately, the cordova cli tool seems to force check= ing out by the user called "git" and not what I'm adding into the command (= myuser). Is there any way to override that behavior of cordova cli to always take gi= t as user? Also I tried to create a "config" file in ~/.ssh and vary the host (as desc= ribed here developer.atlassian.com/blog/2016/04/=E2=80=A6 ) which also does= n't work (cordova cli tool says unsupported URL format). Why doesn't the cordova cli tool simply takes my url as passed in!??! was: Hello, I just tried to retrieve my cordova plugin which lives in a private repo fr= om git ssh url. Therefore I want to use the SSH url which is the following: myuser@bitbucket.org:myuser/cordova-plugin-xyz.git As you can see the user is myuser. If I now run bq. cordova plugin add git+ssh://myuser@bitbucket.org/myuser/cordova-plugin= -xyz.git I get the following error: {quote}npm ERR! Command failed: git clone --template=3D/home/localuser/.npm= /_git-remotes/_templates --mirror ssh://git@bitbucket.org/myuser/cordova-pl= ugin-xyz.git /home/localuser/.npm/_git-remotes/ssh-git-bitbucket-org-myuser= -cordova-plugin-xyz-git-160b6243 npm ERR! Klone in Bare-Repository '/home/l= ocaluser/.npm/_git-remotes/ssh-git-bitbucket-org-myuser-cordova-plugin-xyz-= git-160b6243' ... npm ERR! repository access denied. npm ERR! fatal: Could = not read from remote repository.{quote} As you can see cordova tries to get the plugin by the url bq. ssh://git@bitbucket.org/myuser/cordova-plugin-xyz.git which sets git as user which is wrong in my case. The problem is that I have multiple accounts for bitbucket and also 2 ssh k= eys on my machine. Unfortunately, the cordova cli tool seems to force check= ing out by the user called "git" and not what I'm adding into the command (= myuser). Is there any way to override that behavior of cordova cli to always take gi= t as user? Also I tried to create a "config" file in ~/.ssh and vary the host (as desc= ribed here developer.atlassian.com/blog/2016/04/=E2=80=A6 ) which also does= n't work (cordova cli tool says unsupported URL format). Why doesn't the cordova cli tool simply takes my url as passed in!??! > Set an alternative user for cordova plugin add via git repo > ----------------------------------------------------------- > > Key: CB-13475 > URL: https://issues.apache.org/jira/browse/CB-13475 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-cli > Affects Versions: 7.0.0 > Reporter: Dennis Patzer > > Hello, > I just tried to retrieve my cordova plugin which lives in a private repo = from git ssh url. Therefore I want to use the SSH url which is the followin= g: > bq. myuser@bitbucket.org:myuser/cordova-plugin-xyz.git > As you can see the user is myuser. > If I now run > bq. cordova plugin add git+ssh://myuser@bitbucket.org/myuser/cordova-plug= in-xyz.git > I get the following error: > {quote}npm ERR! Command failed: git clone --template=3D/home/localuser/.n= pm/_git-remotes/_templates --mirror ssh://git@bitbucket.org/myuser/cordova-= plugin-xyz.git /home/localuser/.npm/_git-remotes/ssh-git-bitbucket-org-myus= er-cordova-plugin-xyz-git-160b6243 npm ERR! Klone in Bare-Repository '/home= /localuser/.npm/_git-remotes/ssh-git-bitbucket-org-myuser-cordova-plugin-xy= z-git-160b6243' ... npm ERR! repository access denied. npm ERR! fatal: Coul= d not read from remote repository.{quote} > As you can see cordova tries to get the plugin by the url > bq. ssh://git@bitbucket.org/myuser/cordova-plugin-xyz.git > which sets git as user which is wrong in my case. > The problem is that I have multiple accounts for bitbucket and also 2 ssh= keys on my machine. Unfortunately, the cordova cli tool seems to force che= cking out by the user called "git" and not what I'm adding into the command= (myuser). > Is there any way to override that behavior of cordova cli to always take = git as user? > Also I tried to create a "config" file in ~/.ssh and vary the host (as de= scribed here developer.atlassian.com/blog/2016/04/=E2=80=A6 ) which also do= esn't work (cordova cli tool says unsupported URL format). > Why doesn't the cordova cli tool simply takes my url as passed in!??! -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org