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

Make add --weak automatically create extension entries #3549

Open
oscardssmith opened this issue Jul 14, 2023 · 6 comments · May be fixed by #4016
Open

Make add --weak automatically create extension entries #3549

oscardssmith opened this issue Jul 14, 2023 · 6 comments · May be fixed by #4016

Comments

@oscardssmith
Copy link
Member

It would be great if there were an easy way to add weakdeps from the repl rather than editing the Project.toml file.

@aplavin
Copy link
Contributor

aplavin commented Aug 28, 2023

Yeah, especially if add --weak SomePackage would not only add SomePackage = ... to weakdeps, but also SomePackageExt = SomePackage to [extensions] and SomePackageExt.jl to ext/ with the empty module skeleton.

@liuyxpp
Copy link

liuyxpp commented Sep 8, 2024

So if I am not missed anything, currently I still have to edit Project.toml directly to add weak deps?

@oscardssmith
Copy link
Member Author

correct

@IanButterworth
Copy link
Member

IanButterworth commented Sep 8, 2024

Technically you can already add weak deps via --weak. That's new in 1.11. What cannot be done is automatically create an extension that depends on them, or add that weak dep to an existing extension.

@IanButterworth IanButterworth changed the title add --weak option Make add --weak automatically create extension entries Sep 8, 2024
@IanButterworth IanButterworth linked a pull request Sep 8, 2024 that will close this issue
3 tasks
@IanButterworth
Copy link
Member

Proposal here #4016

@liuyxpp
Copy link

liuyxpp commented Sep 9, 2024

Technically you can already add weak deps via --weak. That's new in 1.11. What cannot be done is automatically create an extension that depends on them, or add that weak dep to an existing extension.

That's great! I just don't want to deal those UUID manually.

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 a pull request may close this issue.

4 participants