Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying owner but not type gives unclear error #172

Open
jobukkit opened this issue May 15, 2024 · 2 comments
Open

Specifying owner but not type gives unclear error #172

jobukkit opened this issue May 15, 2024 · 2 comments

Comments

@jobukkit
Copy link

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.

@Cornelius-Figgle
Copy link

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

@ulic-youthlic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants