From issues-return-93196-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Sun Mar 4 20:37:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 87EE6180677 for ; Sun, 4 Mar 2018 20:37:04 +0100 (CET) Received: (qmail 63668 invoked by uid 500); 4 Mar 2018 19:37:03 -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 63594 invoked by uid 99); 4 Mar 2018 19:37:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2018 19:37:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id ED283C004A for ; Sun, 4 Mar 2018 19:37:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id u5urXSqppCEP for ; Sun, 4 Mar 2018 19:37:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id BF9415F190 for ; Sun, 4 Mar 2018 19:37: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 04356E02A9 for ; Sun, 4 Mar 2018 19:37:01 +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 4BBB02126C for ; Sun, 4 Mar 2018 19:37:00 +0000 (UTC) Date: Sun, 4 Mar 2018 19:37:00 +0000 (UTC) From: "Jesper van den Ende (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13949) cordova prepare doesn't install the correct plugin versions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-13949?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163853= 11#comment-16385311 ]=20 Jesper van den Ende commented on CB-13949: ------------------------------------------ This seems to be caused by my config.xml and package.json having `^4.0.0` a= s version. Replacing that with `4.0.0` fixes the issue. > cordova prepare doesn't install the correct plugin versions > ----------------------------------------------------------- > > Key: CB-13949 > URL: https://issues.apache.org/jira/browse/CB-13949 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-cli > Affects Versions: cordova@8.0.0 > Environment: Mac OS, > Cordova 8.0.0 > npm=C2=A03.10.3 > Reporter: Jesper van den Ende > Priority: Major > Labels: cordova-cli, plugin, prepare, version > > according to the documentation at [https://cordova.apache.org/docs/en/lat= est/platform_plugin_versioning_ref/#plugin-versioning]=C2=A0plugins should = install the version from either config.xml or package.json. However, the la= test version is always installed instead. > How to reproduce: > {noformat} > cordova create test > cd test > cordova platform add android > cordova plugin add cordova-plugin-splashscreen@4.0.0{noformat} > Note how > {code:java} > cordova plugin ls{code} > Shows that version 4.0.0 is installed. Also config.xml and package.json b= oth indicate that 4.0.0 is installed. > Now delete the 'platforms' and 'plugins' folder and run > {noformat} > cordova prepare{noformat} > Note how config.xml and package.json still indicate that 4.0.0 installed,= however when running > {noformat} > cordova plugin ls{noformat} > it shows > {noformat} > cordova-plugin-splashscreen 4.1.0 "Splashscreen" > cordova-plugin-whitelist 1.3.3 "Whitelist"{noformat} > =C2=A0 > perhaps I'm missing something, though my understanding is that when `cor= dova prepare` is run, all plugins and platforms will be installed with thei= r version as listed in package.json and config.xml. > =C2=A0 > {noformat} > cordova plugin rm cordova-plugin-splashscreen > cordova plugin add cordova-plugin-splashscreen@4.0.0{noformat} > Installs the correct version again, but that kind of defeats the purpose = of cordova prepare. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org