JuliaRegistries / Registrator.jl

Julia package registration bot
https://julialang.org/packages
Other
211 stars 47 forks source link

Registration failed using web app and gitlab repo #271

Open greimel opened 4 years ago

greimel commented 4 years ago

I wanted to register https://gitlab.com/greimel/Aiyagari.jl using the web app and got ERROR: Looking up the commit hash failed. I imported the repo to github, tried again, and succeeded (https://github.com/JuliaRegistries/General/pull/10617#issue-384797617).

christopher-dG commented 4 years ago

Looks like GitLab has changed their datetime format...

christopher-dG commented 4 years ago

Upon further inspection, GitLab actually returns different formats depending on what you're accessing, which is... not ideal. Fixing it requires a non-trivial patch to GitForge, so I guess I should start maintaining that package again at some point.

christopher-dG commented 4 years ago

Turns out this is already mentioned here: https://github.com/christopher-dG/GitForge.jl/pull/14 But hacking something into JSON2 is not the right fix IMO. Not really sure what to do but I'll think about it.

salvoc81 commented 4 years ago

Hello guys I am exactly the same issue, and it is a pity there is not way to upload a package unless your repository is on GiHub. Thanks a lot in advance to try to fix this issue.

StefanKarpinski commented 4 years ago

Can you try going to https://juliahub.com, logging in / creating an account, and use the "Register Packages" tab? It has a web-based interface for package registration that should work.

salvoc81 commented 4 years ago

Unluckily I am getting the same (or very similar) error. It seems it cannot find the repository. I have tried both using a Tag or Branch (master, as it is by default).

It should be noted that when I insert the address to the repository it fills in automatically the form with the fields you can seen in the attached screenshot. So it seems it can retrieve the main information from GitLab but maybe it cannot retrieve the source code associated to the Branch/Tag

Thanks anyway @StefanKarpinski for the suggestion, from now on I will refer to this page when I try to upload the package.

image

piever commented 4 years ago

I can confirm the issue. I followed the same steps as @salvoc81 but on this repo and got the same "unable to fetch repository" error.