Skip to content

Conversation

topolarity
Copy link
Member

@topolarity topolarity commented Oct 29, 2024

This is a backport of #54009

@topolarity topolarity mentioned this pull request Oct 29, 2024
47 tasks
@KristofferC KristofferC force-pushed the backports-release-1.10 branch from 9110615 to 27a0143 Compare October 30, 2024 12:57
@topolarity topolarity force-pushed the ct/backport-54009 branch 2 times, most recently from 41c5519 to 7710e7b Compare October 30, 2024 13:10
@KristofferC KristofferC added the merge me PR is reviewed. Merge when all tests are passing label Oct 30, 2024
@topolarity
Copy link
Member Author

Tests are failing due to #56264 (comment)

KristofferC and others added 2 commits October 30, 2024 12:26
… [deps] (JuliaLang#54009)

There is a use case where you have a weak dependency (for one of your
extensions) that is misbehaving and you quickly want to try debug that
issue. A workflow that feels reasonable for this could be:

```
pkg> dev WeakDependency

julia> using Package, WeakDependency

```

This doesn't work right now for two reasons:

1. Doing the `dev WeakDependency` will add the dependency to `[deps]`
but not remove it from `[weakdeps]` which means you all of a sudden are
in the scenario described in
https://pkgdocs.julialang.org/v1/creating-packages/#Transition-from-normal-dependency-to-extension
which is not what is desired.
2. The extension will not actually load because you can right now only
trigger extensions from weak deps getting loaded, not from deps getting
loaded.

Point 1. is fixed by JuliaLang/Pkg.jl#3865
Point 2. is fixed by this PR.

(cherry picked from commit f46cb4c)
@topolarity topolarity merged commit 396b557 into JuliaLang:backports-release-1.10 Oct 31, 2024
5 checks passed
@topolarity topolarity deleted the ct/backport-54009 branch October 31, 2024 03:19
@topolarity topolarity removed the merge me PR is reviewed. Merge when all tests are passing label Oct 31, 2024
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.

2 participants