-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetching package urls from api instead of hardcoded text file #1
Comments
@mAmineChniti hey! thanks for sharing, that is actually interesting. I will take a look if I can fully replace with this API |
@mAmineChniti at least at the main page this is exactly what I wanted to find when I researched for this project. and I checked api docs and still cannot understand which I could use to do the search. Maybe you have an idea? Of course I can use first endpoint from deps.dev, but I don't think it's a good idea to use undocumented api :) |
okay, I messed with this API more and not sure what actually I can get from it.
It would be ideal if I can get implement search with it, that will make a plugin much easier to implement (and expand for python as well), but so far I cannot understand if I can do that with this api |
Maybe you should make github itself your index, search by repo names eliminate forks and non go language repos, that's the only solution i can think about, it's really shit that there's no go packages registry api, npm has one, rust's crates too |
Also users should deal with the renamed packages errors by themselves or if possible you can parse the error and just go get the new one |
@mAmineChniti I actually returned to original approach, but I used
So now index is being update once in a week collecting all the updates first and then filtering them with (1) and (2). |
@mAmineChniti problem with renamed packages that you cannot understand if a packages was moved to another repo. There is no connection. The only way to filter this is option (3) |
yeah 3) is the whole problem with this approach, like having a hardcoded text file and having to parse and check for packages on your own is very unmaintainable is the long run, but there's no other way around it until the official go people create an api for their registry, ayy good luck on this project i'll be using it once it can be installed on lazy.nvim |
@mAmineChniti but you can actually install it already :) |
@mAmineChniti in https://github.com/RomanVolkov/go.get.nvim readme there is an information how to call the plugin. |
would be nice if you can include like a lazy.nvim config in the readme |
@mAmineChniti will do👍 |
@mAmineChniti Hey! |
to avoid limitations that come with files, changing packages and ones that are newly published daily
there's an api that you can just query to get the url and all the information you need about a go package
golang/go#36785 (comment)
https://docs.deps.dev/api/v3alpha/
The text was updated successfully, but these errors were encountered: