Skip to content

Incorrect paths being attributed to sections in generated output #23

@twelsh-aw

Description

@twelsh-aw

First off, thanks for the tool. This is proving helpful to break things down and help us manage tailscale across networks and teams 🚀 .

Noticed that when multiple files are involved in a merge for an object or array property, that this ends up mis-attributing where the rules are actually sourced from.

Easiest repro is probably your testdata 😅:

// from `testdata/input-parent.hujson`

when in fact they come from somewhere else. It should say:

// from `testdata/departments/engineering/acls.hujson`

The underlying cause seems to be because the parent object is updated throughout and so this comment gets added on the second merge of things.

Same thing is also able to cause panics on merges of autoApprovers, but I'll file a separate issue for that and link back here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions