fix: Ignore YAML comments when comparing profiles
Comments in a repository file made an identical profile show as different in list/diff/install. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
This commit is contained in:
1 parent
206290d88b
commit
37cfecf923
1 file changed
+1
@@ -31,6 +31,7 @@ YQ_NORMALIZE='
|
||||
}
|
||||
+ ($p | del(.name, .description, .config, .devices, .used_by, .project))
|
||||
| sort_keys(..)
|
||||
| ... comments = ""
|
||||
| (.. | select(tag == "!!str")) style = ""
|
||||
| (.. | select(tag == "!!str" and test("\n"))) style = "literal"
|
||||
'
|
||||
|
||||
Reference in new issue
Block a user