Refresh non-module "package ifneeded" data when access path changes in safe interp
Closed / Fixed1f63efa53700774f0cd2d5c88c287bcc0c2c9237Created 6 years agoUpdated 6 years ago
Descriptionplain2020-07-15 11:45:02
When a script calls safe::interpConfigure $int option value ?option value...? the Safe Base tests to see if the interpreter's access path (option -accessPath) has changed. If the value changes, the mapping from directories to tokens also changes, and the Safe Base calls auto_reset in the safe interpreter so that stale data is flushed from the autoloader. The Safe Base does not do a comparable reset for package information. The cached information from "package ifneeded" commands is stale, and therefore the safe interpreter will look for package files in the wrong directories. Fixed for non-module packages in branch safe-bugfixes-8-6 commit [823dae2469]. New tests safe-9.10, safe-9.11 check that the stale data has been overwritten. Improved fix in branch safe-bugfixes-8-6 commit [d9ca230fc6].
kjnash Ticket [1f63efa537]: 3 changes
[History diff]2020-07-16 01:13:53
kjnash Ticket [1f63efa537]: 3 changes
[History diff]2020-07-16 02:00:49
kjnash Ticket [1f63efa537]: 3 changes
[History diff]2020-07-23 13:27:25
kjnash Closed ticket [1f63efa537].
[History diff]2020-12-31 15:47:54
Log in (anonymous is fine) to add a comment.