ExplicitImports.jl icon indicating copy to clipboard operation
ExplicitImports.jl copied to clipboard

modules exporting names which aren't theirs

Open baggepinnen opened this issue 3 months ago • 1 comments

Here's a fun one

UUID belongs to base

julia> parentmodule(Base.UUID)
Base

but is not exported by Base

julia> UUID
ERROR: UndefVarError: `UUID` not defined

However, it is exported by UUIDs

julia> using UUIDs

julia> UUID
UUID

julia> parentmodule(UUID)
Base

When running ExplicitImports on ControlSystemsBase, I got

using UUIDs: UUIDs

which then makes UUID no longer imported by CSBase and tests are failing. Would there be a way to detect this happening?

baggepinnen avatar Mar 20 '24 11:03 baggepinnen