openSUSE / obs-service-node_modules

MIT License
7 stars 11 forks source link

Doesn't download packages not in npm registry #10

Closed AdamMajer closed 3 years ago

AdamMajer commented 3 years ago

if package.json has explicit URL for package, like,

"olm": "https://packages.matrix.org/npm/olm/olm-3.2.1.tgz",

then the package-lock.json will contain this URL in version: as version: is never resolved. Service then fails with

WARNING:entry olm has no download

package-lock:


    "node_modules/olm": {
      "version": "3.2.1",
      "resolved": "https://packages.matrix.org/npm/olm/olm-3.2.1.tgz",
      "integrity": "sha512-B87bTpGIGieuV2FNauChjjQtVltwTGagQFoHm+3Dcse4amKAAGJB/I54dnP/JtbHZ+RYVoApM2OQ46Z4VH6eNg==",
      "license": "Apache-2.0"
    },
...
   "olm": {
      "version": "https://packages.matrix.org/npm/olm/olm-3.2.1.tgz",
      "integrity": "sha512-B87bTpGIGieuV2FNauChjjQtVltwTGagQFoHm+3Dcse4amKAAGJB/I54dnP/JtbHZ+RYVoApM2OQ46Z4VH6eNg=="
    },