Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8114

Plugin add does not use any minimum cache time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • None
    • cordova-lib
    • None

    Description

      If you do not specify a version number, it works as expected. However it fails if you specify a version number

      Output – this is expected (no version number specified):
      C:\Users\muratsu\Documents\cordova_old\platform-plugin-cache
      > cordova plugin add org.apache.cordova.camera
      Fetching plugin "org.apache.cordova.camera" via plugin registry
      npm http GET http://registry.cordova.io/org.apache.cordova.camera
      npm http GET http://registry.cordova.io/org.apache.cordova.camera
      npm http GET http://registry.cordova.io/org.apache.cordova.camera

      C:\Users\muratsu\Documents\cordova_old\platform-plugin-cache
      > ls plugins
      org.apache.cordova.camera

      Output – This is not, version number specified (not expected):
      C:\Users\muratsu\Documents\cordova_old\platform-plugin-cache
      > cordova plugin add org.apache.cordova.camera@0.3.3
      Fetching plugin "org.apache.cordova.camera@0.3.3" via plugin registry
      npm http GET http://registry.cordova.io/org.apache.cordova.camera/0.3.3
      npm http GET http://registry.cordova.io/org.apache.cordova.camera/0.3.3
      npm http GET http://registry.cordova.io/org.apache.cordova.camera/0.3.3
      Error: getaddrinfo ENOTFOUND
      at errnoException (dns.js:37:11)
      at Object.onanswer [as oncomplete] (dns.js:124:16)

      If a specific version is specified and the plugin / platform is in the cache, there is no reason to do a lookup in the public repo. Currently plugin add fails when offline even if that specific version of the plugin is cached locally which doesn't make any sense.

      Attachments

        Activity

          People

            agrieve Andrew Grieve
            muratsu Murat Sutunc
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: