-
Notifications
You must be signed in to change notification settings - Fork 48
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
Allow registering packages in a subdir of the main repo directory #230
Comments
Registration pull request updated: JuliaRegistries/General/3966 After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version. This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:
|
I really really like this, together with #1251, so we can have multiple Julia packages in one monorepo. As an extension of what is suggested here, would it perhaps be acceptable if in addittion a command like One might think of variants, like Spinning this further, perhaps registering multiple subdir-packages at once could even result in a single registry PR that updates all of them at once? That would be handy if they really ought to be used in matching versions. |
While those extensions sounds reasonable, I think we should first have the simplest case with one package at a time working first. Then we could do something like |
Notice that the tagging story becomes different in the subdirectory scenario. It's not obvious how the tags on the repository should relate to the versions of one or more Julia packages in various subdirectories, if at all. |
One idea would be to use different tag names for package in subdirs: e.g. |
I like this system. |
The name of the tag does not really matter but I think it would be good to standardize it such that tools like Documenter, that inspect tags for building docs, can understand them. I think |
Yes, we should definitely have a standardized naming convention.
Sounds good to me. |
Just to be explicit about it: with Question: should the name of subdirectory be required to match the package name? Right now, I think nothing requires that. Makes me wonder: is the repository name expected to match the package name right now? I never tried differently...(To be clear, I am not saying this should be done; I expect it'll be easier to not enforce this. But if anybody sees a good reason for this match, it'd be more difficult to enforce it retroactively. For my use cases, package and subdir name will always match, so I really don't mind either way ;-) |
I believe that we check that the repo name matches the package name for automatic merging so that would be relaxed. I still think it might be good to check that the directory is named the same as the package. |
If you have a larger repository where the Julia package is just a part, it's quite possible that you want the Julia package to live in, say, the |
Yeah we have to think about what changes we need to make to AutoMerge. |
With JuliaLang/Pkg.jl#1422 someone can install a package that lives in a subdirectory of a repo. For the complete "subdir-experience" we should also allow registering packages that live in a subdirectory.
I would suggest the API
@JuliaRegistrator register subdir=path/to/Package
.Note that the tree-sha that gets registered in the registry should be that of the path
path/to/Package
not the tree-sha of the main directory of the repo itself.The text was updated successfully, but these errors were encountered: