-
Notifications
You must be signed in to change notification settings - Fork 47
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
Registering package from subdirectory fails when using web UI #343
Comments
racinmat
referenced
this issue
Jul 16, 2021
nkottary
added a commit
that referenced
this issue
Jul 18, 2021
Fixed by #344 |
It seems the fixed version is not deployed, https://juliahub.com/ui/Registrator still throws the error. |
@nkottary any ETA on deployment? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As part of MWE for this bug, I tried to register https://github.com/racinmat/TestPackageMonorepo.jl/tree/master/TestPackageSubDir1
(filling
https://github.com/racinmat/TestPackageMonorepo.jl.git
to Package URL, GitHub to Server Type and
TestPackageSubDir1
to Directory).It fails to register and says
The sub-directory TestPackageSubDir1 does not exist in this repository
.My suspicion is the bug is https://github.com/JuliaRegistries/Registrator.jl/blob/master/src/webui/gitutils.jl#L168 because
git clone --bare
clones the bare git metadata and thus the directory containshooks
,info
,objects
etc. but not the actual subdirectory, because that is available only when--bare
is not used.I think this bug occurred during 1c35395 when the checking for
isdir(joinpath(dest, subdir))
wasn't modified accordingly.The text was updated successfully, but these errors were encountered: