Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6803011767 for ; Fri, 12 Sep 2014 02:26:34 +0000 (UTC) Received: (qmail 2979 invoked by uid 500); 12 Sep 2014 02:26:34 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 2956 invoked by uid 500); 12 Sep 2014 02:26:34 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 2940 invoked by uid 99); 12 Sep 2014 02:26:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2014 02:26:33 +0000 Date: Fri, 12 Sep 2014 02:26:33 +0000 (UTC) From: "Marcel Kinard (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-7526) cordova platform add fails for ios and android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-7526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14131031#comment-14131031 ] Marcel Kinard commented on CB-7526: ----------------------------------- Bryan, thanks for doing the rollback. When I manually run shasum on the tgz that I used with "npm publish", it reports the value that matches the actual value reported in npm-debug.log. That looks good. So I did a get on the metadata ( https://registry.npmjs.org/cordova-ios/3.6.1 ) and indeed the dist:shasum value stored in the metadata is incorrect. So the expected shasum stored in the metadata is incorrect, but the actual shasum computed at install time is correct. I think the incorrect behavior may be caused by the following bug as I went back and discovered I was on node v0.11.12 when I did the "npm publish" (ah, crap): https://github.com/npm/npm/issues/5414 Strangely, I can "npm -g install" all the new tools and platforms on a 2nd attempt. But "cordova platform add" continues to fail on subsequent attempts. I've attempted to republish these same versions using node v0.10.31 and it fails (as expected) with a "cannot modify preexisting version" error. This matches the behavior I saw when attempting the 3.6.0 publish. So at this point it looks like we'll need to do the same exercise again: bump all the versions in package.json and bump the versions in cordova-lib/.../platforms.js and similar. Unless there are other ideas, I can start on this tomorrow. Sigh. Does this mean doing a new vote, or do we call it simply a downstream distribution? > cordova platform add fails for ios and android > ---------------------------------------------- > > Key: CB-7526 > URL: https://issues.apache.org/jira/browse/CB-7526 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Affects Versions: 3.6.0 > Reporter: Scott Gilroy > Priority: Blocker > > I created a new cordova project and attempted to add platforms > $ cordova create HelloCordova com.twinehealth.hello HelloCordova > Creating a new cordova project with name "HelloCordova" and id "com.twinehealth.hello" at location "/Users/sgilroy/Documents/GitHub/HelloCordova" > Downloading cordova library for www... > Download complete > $ cd HelloCordova > $ cordova platform add ios > npm http GET https://registry.npmjs.org/cordova-ios/-/cordova-ios-3.6.1.tgz > npm http 200 https://registry.npmjs.org/cordova-ios/-/cordova-ios-3.6.1.tgz > Unable to fetch platform ios: Error: shasum check failed for /var/folders/cr/68yqxgyx32zf7b7c9cbl6msr0000gn/T/npm-56180-4vCiphuS/1410472085915-0.8748841187916696/tmp.tgz > Expected: ae3d0a39e25f21c897812029c3fbc7f816d592a7 > Actual: ffed0885409aed998b6d351fcae46518ad279a02 > $ cordova platform add android > npm http GET https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.1.tgz > npm http 200 https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.1.tgz > Unable to fetch platform android: Error: shasum check failed for /var/folders/cr/68yqxgyx32zf7b7c9cbl6msr0000gn/T/npm-56679-_qwlX-IR/1410472210058-0.6259658436756581/tmp.tgz > Expected: b9138a0743c4f424ee62721c22dac84e8d1ca087 > Actual: a5c74dea5a0225566e4a54185d8639a7f7f6ac3e -- This message was sent by Atlassian JIRA (v6.3.4#6332)