Open ceedubs opened 1 month ago
Whats the use case for this? Seems weird to me to have an alias pointing at a different branch or project. I guess this is a our way to copy? Hmmm.
@hojberg here are a couple of use-cases:
fork
a subnamespace into its own project, but I run into #5044.Log
, Remote
and Http
, so we might need to create an alias for the old version of the type so we can still handle it without depending on the entire old version of the library.And yeah this is basically a copy; but in Unison you don't really copy a definition; you just add a new name as a pointer to the definition.
The
fork
command supports a syntax likefork project/branch:path
. Butalias.term
andalias.type
don't support the same syntax:A workaround is to use
names
to get the hash and then pass the hash as the first argument.