-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Pkg: provide hooks for Pkg.update() to packages #4201
Comments
Maybe we should allow packages to put an |
That sounds good to me. Especially as it keeps things lightweight; we don't necessarily have to pull in the entire package for parsing just to update it. |
We should go ahead with this. Where does the call to |
I would do it just after a successful |
Is this getting put into 0.2? Or 0.3? |
I think it could probably go into 0.2. |
Marking as 0.2.x - bonus if it makes it to 0.2 release |
I've marked this as 0.3, since it's a new feature. |
It would be neat if packages could register a callback for when the user does
Pkg.update()
. This would be a really nice solution for packages that might internally have some state that they could update (such as the formulae in the tap of my Homebrew.jl package).As it stands, right now there is a
Homebrew.update()
function which isn't terrible, but as we get more and more packages, it would be nice to havePkg.update()
be able to apply to all the packages that might have such functions. I have a dummydeps/build.jl
file which is just:But this only gets triggered on an SHA bump of Homebrew.jl, which will likely happen far less often than I will add new formulae into homebrew-juliadeps.
The text was updated successfully, but these errors were encountered: