Skip to content

[AutoBuild] Make julia_compat a required keyword argument#1337

Open
giordano wants to merge 2 commits into
masterfrom
mg/julia-compat-required
Open

[AutoBuild] Make julia_compat a required keyword argument#1337
giordano wants to merge 2 commits into
masterfrom
mg/julia-compat-required

Conversation

@giordano

Copy link
Copy Markdown
Member

Completely untested, will probably need to adapt some tests, but opening the PR to save my quick progress. Ref: JuliaPackaging/Yggdrasil#9046 (comment). CC: @vchuravy

Comment thread src/AutoBuild.jl
error("""
`julia_compat` must be set explicitly to a valid compat spec string.
If this is an existing recipe which didn't previously specify `julia_compat`, use the old default value of `"1.0"`,
otherwise for a new recipe you're encouraged to set `julia_compat="1.6"`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we make this more generic (e.g. say to the current LTS release)? That way we don't need to update the error messages for newer versions.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think sticking to v1.6 is ok, we don't have any particular reason to restrict to newer versions. Maybe I could rephrase slightly to say something along the lines of "at least 1.6"

@ViralBShah

Copy link
Copy Markdown
Member

LTS may be too aggressive - and perhaps LTS-1 (1.6) is a good default.

@ViralBShah

Copy link
Copy Markdown
Member

Get this merged?

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.

3 participants