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

Error: Julia version < 0.7 not allowed in [compat] despite correct version specification #434

Open
cralibe opened this issue Sep 13, 2024 · 1 comment

Comments

@cralibe
Copy link

cralibe commented Sep 13, 2024

Error while trying to register: "Julia version < 0.7 not allowed in [compat]"

[compat]
julia = ">= 1.6, < 2.0"
CSV = ">= 0.10, < 1.0"
Clustering = ">= 0.15, < 1.0"
Combinatorics = ">= 1.0, < 2.0"
DataFrames = ">= 1.0, < 2.0"
DataStructures = ">= 0.18, < 1.0"
Distances = ">= 0.10, < 1.0"
Distributions = ">= 0.24, < 1.0"
Documenter = ">= 1.6, < 2.0"
GaussianRandomFields = ">= 2.0, < 3.0"
Pipe = ">= 1.3, < 2.0"
Plots = ">= 1.40, < 2.0"
ProgressMeter = ">= 1.10, < 2.0"
SortingAlgorithms = ">= 1.1, < 2.0"
SpecialFunctions = ">= 1.0, < 3.0"
Statistics = "1"
StatsBase = ">= 0.33, < 1.0"

Steps I've Taken:

  1. Verified that all dependencies in my Project.toml do not specify compatibility with Julia versions below 1.3.
  2. Bumped the version number and tried re-registering.
  3. Cleared the cache and re-ran my CI, which passes on Julia versions 1.6, 1.9, and nightly.

Additional Information:

  1. CI setup tests on Julia 1.6, 1.9, and nightly.
  2. The package works fine locally and in CI, but the registration process is blocked with the above error.
@DilumAluthge
Copy link
Member

This doesn't directly answer your question, but your compat entries are not upper-bounded. In Julia/Pkg, the comma means OR, so something like >= 1.2.3, < 2.0 means "at least 1.2.3 OR less than 2.0", which of course covers the entire universe of version numbers.

So, instead of writing >= 1.2.3, 2.0, you should write one of these instead:

  1. ^1.2.3
  2. 1.2.3 (this is exactly equivalent to ^1.2.3)
  3. 1.2.3 - 2.0.0
    • I recommend using ^1.2.3 or 1.2.3, instead of using the hyphen.
    • If you do choose to use the hyphen, make sure you have a space before the hyphen and a space after the hyphen.

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

2 participants