Skip to content

Commit

Permalink
Add note to load_path docstring stating that it is not safe to muta…
Browse files Browse the repository at this point in the history
…te its return value (#50233)
  • Loading branch information
LilithHafner committed Jun 22, 2023
1 parent ef6d900 commit 330c79d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/initdefs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ end
Return the fully expanded value of [`LOAD_PATH`](@ref) that is searched for projects and
packages.
!!! note
`load_path` may return a reference to a cached value so it is not safe to modify the
returned vector.
"""
function load_path()
cache = LOADING_CACHE[]
Expand Down

2 comments on commit 330c79d

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily package evaluation, I will reply here when finished:

@nanosoldier runtests(isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your package evaluation job has completed - possible new issues were detected.
A full report can be found here.

Please sign in to comment.