Why does my DynamicSupervisor get a name like {:local, :myname}

When I create my Dynsup using code below, at least in tests, it gets created with a funny tuple instead of its name.
This doesn’t happen for anything else I pass a name: tag to in its childspec.

with {:ok, sup_pid} <-
      DynamicSupervisor.start_child(
        __MODULE__,
        %{
          id: rig_super_name,
          start:
            {DynamicSupervisor, :start_link,
             [[**name: rig_super_name,** strategy: :one_for_one]]},
          restart: :transient
        }
      ),
      {:ok, match_pid} <-
           DynamicSupervisor.start_child(
             __MODULE__,
             %{
               id: match_name,
               start:
                 {Fubars.Match, :start_link,
                  [
                    [
                      name: match_name,
                      match_id: match_id,
                      gui_pid: gui_pid,
                      rig_registry_name: rig_registry_name,
                      arena_name: arena_name,
                      match_max_time: match_max_time,
                      sup_pid: sup_pid
                    ]
                  ]},
               restart: :transient
             }
           ),

rig_super_name is something like :rigsup1002, but it ends up getting a name

{:local, :rigsup1002}

which causes problems because I want to register its name via Process.register, which strange enough, when I try to do this, it complains that the name already exists.

Oh, – new information. I think DynamicSupervisors already register themselves, so my attempt to register them is futile :wink: