-
Notifications
You must be signed in to change notification settings - Fork 111
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
Update pkgorigins version field on code changes? #684
Comments
Yes, when an update is successful this would make a lot of sense. |
If I'm not mistaken, Revise already loads new package versions whenever an update happens. However, for some reason Maybe here: https://github.com/JuliaLang/julia/blob/c40ecd3f03ad2f61648a3d5e3a4b831b56891b20/base/loading.jl#L1829 |
Yeah. Should be a simple fix. Just need to update that dict |
You mean Revise should take care of updating this dict when it loads new pkg versions? |
Yeah |
I couldn't figure out the right place to do it, but it needs something like this done any time the It also would need the package id (
|
Pkg will soon start highlighting when the pkgorigins version entry for a loaded dependency doesn't match the expected manifest version, so this needs fixing, otherwise it could be confusing. JuliaLang/Pkg.jl#4109 |
With the addition of the version field to pkgorigins and the API to access it, I wondered whether Revise should monitor for package version changes and update appropriately?
If so, are changes to the Project.toml itself tracked by Revise, or would the re-parsing of the TOML need to happen on any code change?
cc. @KristofferC
The text was updated successfully, but these errors were encountered: