dotter
dotter copied to clipboard
Specifying owner but not type gives unclear error
This works:
"example.txt" = { target = "/root/example.txt", type = "symbolic", owner = 0 }
This does not:
"example.txt" = { target = "/root/example.txt", owner = 0 }
It gives the error "data did not match any variant of untagged enum FileTargetOuterRepr", so it's not immediately clear that the type not being specified is the problem.
I also stumbled across this error. It appears to be when you use the complex targets the automatic type detection is disabled. Thank you for noticing this first though, helped me out :)
It looks as if the merge matches based on the type first, then the id.