Skip to content

Commit 18b703b

Browse files
committed
give packages without project uuids based on their name instead of a random uuid (#410)
* give packages without project uuids based on their name instead of a random uuid * Update Types.jl * Update Types.jl
1 parent 105e489 commit 18b703b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stdlib/Pkg/src/Types.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,10 @@ function parse_package!(ctx, pkg, project_path)
608608
reg_uuids = registered_uuids(env, pkg.name)
609609
is_registered = !isempty(reg_uuids)
610610
if !is_registered
611-
# This is an unregistered old style package, give it a random UUID and a version
611+
# This is an unregistered old style package, give it a UUID and a version
612612
if !has_uuid(pkg)
613-
pkg.uuid = UUIDs.uuid1()
613+
uuid_unreg_pkg = UUID(0xa9a2672e746f11e833ef119c5b888869)
614+
pkg.uuid = uuid5(uuid_unreg_pkg, pkg.name)
614615
@info "Assigning UUID $(pkg.uuid) to $(pkg.name)"
615616
end
616617
pkg.version = v"0.0"

0 commit comments

Comments
 (0)