dotter icon indicating copy to clipboard operation
dotter copied to clipboard

Specifying owner but not type gives unclear error

Open jobukkit opened this issue 9 months ago • 2 comments

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.

jobukkit avatar May 15 '24 15:05 jobukkit

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 :)

Cornelius-Figgle avatar May 23 '24 16:05 Cornelius-Figgle

It looks as if the merge matches based on the type first, then the id.

ulic-youthlic avatar Jun 19 '24 03:06 ulic-youthlic