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

Specifying SHA.jl compatibility with Julia 1.6/1.7 #87

Open
omus opened this issue Feb 22, 2023 · 3 comments
Open

Specifying SHA.jl compatibility with Julia 1.6/1.7 #87

omus opened this issue Feb 22, 2023 · 3 comments

Comments

@omus
Copy link

omus commented Feb 22, 2023

The latest version of this package is 0.7. You cannot install [email protected] on Julia 1.6 and 1.7 as these versions already include SHA.jl as a stdlib:

julia> VERSION
v"1.6.6"

(@v1.6) pkg> add SHA@0.7
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package SHA [ea8e919c]:
 SHA [ea8e919c] log:
 ├─possible versions are: 1.6.6 or uninstalled
 └─restricted to versions 0.7 by an explicit requirement — no versions left

This is problematic as if you want to specify a Project.toml compat entry for SHA.jl and your package supports Julia 1.6+ you would have to define a compat entry of:

[compat]
SHA = "~1.6, ~1.7, 0.7"

Although this isn't a problem at the moment we could run into an issue in the future where SHA.jl version 1.0.0 removes functionality that was present in the stdlib and then stdlib SHA.jl and the external SHA.jl have versions 1.6.6 that provide different functionality.

Additionally, when this external package reaches version 2.0 then Julia 1.6 and 1.7 will be unable to use this new version as they are stuck with the stdlib version.

The only options I see are to:

  • Change the package UUID such that Julia 1.6 and 1.7 can use either the stdlib SHA or the external version
  • Keep the external SHA.jl package compatible with the stdlib version. Once Julia 1.6 is no longer the LTS we can make whatever changes we want here and inform package maintainers to drop support for Julia 1.6 to mitigate this issue.
@omus
Copy link
Author

omus commented Feb 22, 2023

cc: @staticfloat

@DilumAluthge
Copy link
Contributor

@KristofferC may have some thoughts here.

@lgoettgens
Copy link

lgoettgens commented Oct 17, 2023

Is there anything new about this? In particular, requiring stdlib compats for the registry now seems like a reason to find a quick solution for this.

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

No branches or pull requests

4 participants
@omus @DilumAluthge @lgoettgens and others