def is_hub
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
323# an import of a hub package, which is a dependency rather than a module of
324# this package. A `0x` name has no directory of its own, so the first `/` ends
325# it.
326def is_hub(+spec: String) -> Bool:
327 Bool.and(String.starts_with(spec, "0x"), String.contains(spec, "/"))