Skip to content

Conversation

@Keno
Copy link
Member

@Keno Keno commented Nov 28, 2025

Pkg side of julia#60275. Base clamps this when loading explicitly from a Project.toml, so to the extent that a manifest is a compacted summary of Base's loading behavior, it should clamp as well. Of course, this isn't strictly necessary after the Base PR merges, but I think it makes sense to have the manifest reflect what loading would do, rather than what was in the Project.toml.

@github-project-automation github-project-automation bot moved this to New in Pkg.jl Nov 28, 2025
@Keno Keno force-pushed the claude/add-min-version-clamp-01TkCoEjbRBv2ETLYe6tCKbL branch from 73d2470 to 9c50d95 Compare November 28, 2025 19:33
# having their syntax version set too low (which would cause the parser
# to reject newer syntax features like `import ... as`)

mktempdir() do test_dir
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like kind of "bloaty" tests. Ok, to have one full manifest test for compat and one for syntax but then the rest can maybe just be unit style tests that can be tested on a single line?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do think all four cases are reasonable, but yeah, the implementation is a bit bloaty. Will have claude condense it.

Fix issue where packages with ancient compat declarations like
`julia = "1"` would have their syntax version set to v1.0, causing
the parser to reject newer syntax features like `import ... as`.

Since syntax versioning was introduced in Julia 1.14, we now clamp
the syntax version to at least v1.13 (NON_VERSIONED_SYNTAX) to match
the logic in Base.loading.jl.

This also fixes a bug in the original function where it referenced
`syntax_table["julia_version"]` instead of `p.julia_syntax_version`.

Fixes JuliaLang/julia#60273
@Keno Keno force-pushed the claude/add-min-version-clamp-01TkCoEjbRBv2ETLYe6tCKbL branch from 9c50d95 to 26fc759 Compare November 28, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

3 participants