Skip to content
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

Register Compiler subfolder of JuliaLang/julia #118541

Merged
merged 3 commits into from
Nov 8, 2024
Merged

Conversation

Keno
Copy link
Contributor

@Keno Keno commented Nov 2, 2024

This is a companion PR to JuliaLang/julia#56409. The two PRs will need to be merged somewhat contemporaneously to allow downstream consumers to transition their use of Core.Compiler to the Compiler pseudo-stdlib without interruption.

As described in JuliaLang/julia#56409, the idea here is rather than using the tranditional Julia stdlib mechanism, which does not track exact package contents or versions, the Compiler instead becomes an ordinary Julia package that just happens to live in JuliaLang/julia (for now). Base has a private copy of this package, but users ordinarily aren't supposed to interact with it.

Since it is an ordinary package, it will need to be registered in General, rather than relying on the entry it would have otherwise had in the julia distribution's to-level folder. This PR is intended to facilitate that registration.

Note that I am opening this PR without any actual tagged versions of Compiler. My intention is to tag 0.0.1 upon merging the corresponding julia PR, but the full versioning strategy for Compiler has yet to be decided upon.

As mentioned, the purpose of this PR is to get pre-agreement on the registration itself to make sure we can merge/tag simultaneously without doing something overly special on the registry side. I do not know if this PR can be merged as is without any versions tagged or if some part of the tooling will be confused by that. If it can, that's probably easiest. If not, I will amend this PR with the appropriate version once the julia PR is merged and expect it to merge manually shortly thereafter.

This is a companion PR to JuliaLang/julia#56409. The two PRs will need to be merged somewhat
contemporaneously to allow downstream consumers to transition their use of
`Core.Compiler` to the `Compiler` pseudo-stdlib without interruption.

As described in JuliaLang/julia#56409, the idea here is rather than using the tranditional
Julia stdlib mechanism, which does not track exact package contents or versions, the
Compiler instead becomes an ordinary Julia package that just happens to live in
JuliaLang/julia (for now). Base has a private copy of this package, but users
ordinarily aren't supposed to interact with it.

Since it is an ordinary package, it will need to be registered in General, rather than
relying on the entry it would have otherwise had in the julia distribution's `stdlib`
folder. This PR is intended to facilitate that registration.

Note that I am opening this PR without any actual tagged versions of `Compiler`.
My intention is to tag `0.0.1` upon merging the corresponding julia PR, but the
full versioning strategy for `Compiler` has yet to be decided upon.

As mentioned, the purpose of this PR is to get pre-agreement on the registration
itself to make sure we can merge/tag simultaneously without doing something
overly special on the registry side. I do not know if this PR can be merged as
is without any versions tagged or if some part of the tooling will be confused
by that. If it can, that's probably easiest. If not, I will amend this PR with
the appropriate version once the julia PR is merged and expect it to merge manually
shortly thereafter.
@Keno Keno changed the title Pre-registration PR for new pseudo-stdlib Compiler Register Compiler subfolder of JuliaLang/julia Nov 8, 2024
@Keno Keno merged commit 21ff962 into master Nov 8, 2024
8 checks passed
@Keno Keno deleted the kf/registercompiler branch November 8, 2024 05:03
@ericphanson
Copy link
Member

looks like this is missing a compat bound for julia? BTW I think you can just use Registrator for this next time which would catch that and create the PR automatically.

@Keno
Copy link
Contributor Author

Keno commented Nov 9, 2024

I somewhat deliberately left the compat bound off, so packages could depend on it without becoming uninstallable on older julia versions (where they would use Core.Compiler instead).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants