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:
xavierandClaude Opus 5.5 committed 2026-11-21 01:45:44 +01:00
1 parent 206290d88b
commit 37cfecf923
1 file changed
+1
+1
View File
@@ -31,6 +31,7 @@ YQ_NORMALIZE='
} }
+ ($p | del(.name, .description, .config, .devices, .used_by, .project)) + ($p | del(.name, .description, .config, .devices, .used_by, .project))
| sort_keys(..) | sort_keys(..)
| ... comments = ""
| (.. | select(tag == "!!str")) style = "" | (.. | select(tag == "!!str")) style = ""
| (.. | select(tag == "!!str" and test("\n"))) style = "literal" | (.. | select(tag == "!!str" and test("\n"))) style = "literal"
' '