My installed plugin version is different of version setted on config.xml

  • 1
  • Question
  • Updated 4 years ago
  • Answered
I've setted on my config.xml version 4.4.4 of plugin cordova-plugin-calendar. But the version installed is 4.4.3.
When I've checked the plugin tab, the corresponding line shows:
cordova-plugin-calendar npm 4.4.4 n/a 4.4.3 android,ios,winphone
https://www.evernote.com/l/APXR60SAwb...
Why the installed version is not the version specified ?
What's the purpose of version and installed columns ?
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes

Posted 5 years ago

  • 1
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Did you enable hydration? If so try turn it off/on and see if 4.4.4 are able to install.

Thanks.
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
No I didn't enable hydration
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
the id of app is 1157857. I've rebuilt it this afternoon and now the installed version is correct.
Does it exists a cache of plugins or stg similar ?
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Most probably cache issue from the server side. If it happen again let us know, but as a workaround try remove and recreate new app.

Thanks
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
It continues, I use cordova-plugin-apprate from npm the version is "~1.1.11" on config.xml, the latest version on npm is 1.11.12 and the installed is 1.1.7 !?!
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Well, isn't that correct, then?
Anyway, if you want the latest version, don't specify a version or spec, then.
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
I've reinstalled the app and it continues with an old version of the plugin. I've tested today with app 1271353 and it concerns the plugin cordova-plugin-apprate
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
no it's not correct, the installed version should be at least 1.1.11, the correct version should be 1.1.12, but not 1.1.7 that is an older version
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
I've tried removing the spec from config.xml to get latest version but the issue continues, so I can't build anymore my Apps because I need this plugin and the prior version, 1.1.7 installed by phonegap build contains critical issues.
Please can you check how to solve this, In my point of view it's a serious issue, no only for my projects but because builds don't respect config.xml it should hide serious issues on all projects using phonegap build
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
See following issue on github of plugin concerned, maybe it includes clues to investigate: https://github.com/pushandplay/cordov...
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
You removed the spec/version from config.xml and still didn't get the latest version?

Anyway, the latest version on npm is 1.1.12 (not 1.11.12 as you wrote yesterday), and 1.1.11 doesn't exist.

If you specify no version, and still don't get 1.1.12, the odds are that your config isn't found, read and/or parsed. One reason might be Hydration...have you switched that on?
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
I don't use hydration.
I've tested, the 3 following plugin declarations:
- plugin name="cordova-plugin-apprate" spec="~1.1.12"
- plugin name="cordova-plugin-apprate" spec="~1.1.11"
- plugin name="cordova-plugin-apprate"

All of these 3 declarations fetch version 1.1.7 of plugin
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
I've found a way to fetch the latest version using the git url:
- plugin name="cordova-plugin-apprate" spec="https://github.com/pushandplay/cordov..."

That raises following log:
Fetching plugin "https://github.com/pushandplay/cordov..." via git clone
Repository "https://github.com/pushandplay/cordov..." checked out to git ref "master" at "9f60210".
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
The issue remains, now the current version of plugin is 1.1.12 and PhoneGap Build continues installing version 1.1.7 when I use following declaration on my config.xml:
- plugin name="cordova-plugin-apprate" spec="~1.1.12"
Photo of Victor Dias

Victor Dias

  • 32 Posts
  • 2 Reply Likes
I've find the issue, it's due to a bad plugin@version attribute set to 1.1.7 instead of 1.1.12 as configured on package.json used by npm