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

Automatically add compat entries when adding deps to a package #3732

Merged
merged 8 commits into from Dec 20, 2023

Conversation

IanButterworth
Copy link
Sponsor Member

@IanButterworth IanButterworth commented Dec 16, 2023

Closes #776

If the current environment is a package this makes pkg> add auto add compat entries for the new direct dependencies.

I don't think we'd want to make this standard practice for the default envs, hence being specific to packages, but maybe there's an argument that it should be done for unnamed environments other than the defaults? Like the envs stored alongside scripts.

The compat entries are set to be lower-bounded by the installed patch version (which makes this work for JLLs).
It feels safer than relying on semver and setting it to Base.thisminor(v).

@IanButterworth IanButterworth merged commit cbd5d08 into JuliaLang:master Dec 20, 2023
13 checks passed
@IanButterworth IanButterworth deleted the ib/add_compat branch December 20, 2023 14:38
KristofferC pushed a commit that referenced this pull request May 9, 2024
* add compat entries when adding to a package

* update tests that assume there's no compat entries

* Update CHANGELOG.md

* add docs

* fix qualification

* wording tweaks

* add tests

* fix tests
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.

Add automatically compat entry when adding a package
1 participant