LeoIannacone / npm2deb

tool to help debianize Node.js modules
GNU General Public License v3.0
46 stars 34 forks source link

Avoid searching on anonscm(Fixes #106) #107

Closed divatemangesh closed 6 years ago

divatemangesh commented 6 years ago

Since, alioth is recently shut down, We should stop searching on anonscm

shanavas786 commented 6 years ago

You can remove lines 41, 42 and 27 also

pravi commented 6 years ago

@shanavas786 I think we should also search in https://alioth-archive.debian.org/git/pkg-javascript/ and https://alioth-archive.debian.org/git/collab-maint/ as some packages may not be migrated to salsa. This can be done only as a fallback case in case the module is not found in salsa.

shanavas786 commented 6 years ago

yes, but alioth-archive doesn't provide search functionality as alioth did. Either we have to search name in the body of above pages or use HEAD request to check if the file exists there. I was checking if alioth-archive supports HEAD request but the server seems to be very slow. The later one is seems to be better fit To list the packages with similar names, we have to follow the former approach.

pravi commented 6 years ago

@shanavas786 I think we can just cache two pages (pkg-javascript and collab-maint) and do a local regex search. They will not be changing again.

pravi commented 6 years ago

Or even embed the list inside npm2deb

pravi commented 6 years ago

if we embed, we can remove the packages already on salsa.

shanavas786 commented 6 years ago

we use https://wiki.debian.org/Javascript/Nodejs/Database for similar purpose. I think its better we create another page for packages not ported to salsa.

pravi commented 6 years ago

But that is for a dynamic data, here this data will never change. I don't see any benefit to making it dynamic.

pravi commented 6 years ago

Or rather, it will only reduce and become zero when all repos are migrated.

pravi commented 6 years ago

Your call, I'm fine with creating a wiki page as well.