Skip to content

Commit b9dd85f

Browse files
committed
exclude JuliaHub module from _find_public_names
1 parent af8d395 commit b9dd85f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/JuliaHub.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ end
4242
# prefixed with an underscore.
4343
function _find_public_names()
4444
return filter(names(@__MODULE__; all=true)) do s
45+
# We don't need to check or mark public the main module itself
46+
(s == :JuliaHub) && return false
47+
startswith(string(s), "_") && return false
4548
# Internal functions and types, prefixed by _
4649
startswith(string(s), "_") && return false
4750
# Internal macros, prefixed by _

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ end
182182
:Dataset, :DatasetReference, :DatasetVersion,
183183
:DefaultApp, :FileHash, :InvalidAuthentication, :InvalidRequestError, :Job,
184184
:WorkloadConfig, :JobFile, :JobLogMessage, :JobReference, :JobStatus,
185-
:JuliaHub, :JuliaHubConnectionError, :JuliaHubError,
185+
:JuliaHubConnectionError, :JuliaHubError,
186186
:JuliaHubException,
187187
:Limit, :NodeSpec, :PackageApp, :PackageJob, :Unlimited,
188188
:PermissionError, :script, :Secret, :UserApp,

0 commit comments

Comments
 (0)