[Pkg-javascript-devel] Future uscan feature

Xavier yadd at debian.org
Thu Nov 5 23:10:43 GMT 2020


Hi all,

I pushed an MR to uscan to add "compat", "compat_group" and
"compat_checksum" targets. This permits to solve for example @types/node
download. Example

  version=4
  opts=filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-glob-$1.tar.gz/ \
  https://github.com/isaacs/node-glob/tags \
    .*/archive/v?([\d\.]+).tar.gz group

  opts="searchmode=plain,component=types-glob,pgpmode=none" \
  https://registry.npmjs.org/@types/glob
  https://registry.npmjs.org/@types/glob/-/glob-([\d\.]+)@ARCHIVE_EXT@ \
    compat_group

will download @types/glob as long as @types/glob version is compatible
with glob. If next version of glob embeds its typescript definitions
(and then no new version of @types/glob is published), uscan will fail.

Other example, if you restrict version in "glob" regexp (or in
--download-version), uscan will choose the good @types/glob, not the last.

And so on.
See https://salsa.debian.org/debian/devscripts/-/merge_requests/207



More information about the Pkg-javascript-devel mailing list