Repository navigation
feat: make structural spec editor default - #452
Draft
Thien Trung Vuong (trungams) wants to merge 9 commits into
Draft
Thien Trung Vuong (trungams) wants to merge 9 commits into
Thien Trung Vuong (trungams) wants to merge 9 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The lock-file-free template omits the new default and migration guidance, leaving --without-lockfile skill output without documentation for behavior that also changes in that mode.
1 open issue
What changed in this PR
This PR makes the structural RPM spec editor the default across spec loading, source preparation, and component commands, while retaining the legacy editor as a deprecated option.
Changes:
- Default to
structural, warn whenlegacyis selected, and reject the formerexperimentalCLI value. - Update tests for default selection, editor routing, and deprecation warnings.
- Refresh user documentation, agent guidance, and MCP snapshots.
| File | Description |
|---|---|
scenario/__snapshots__/TestMCPServerMode_1.snap.json |
Updates MCP editor-option descriptions. |
internal/rpm/spec/spec_test.go |
Tests default structural loading. |
internal/rpm/spec/editor.go |
Changes the default and documents legacy deprecation. |
internal/rpm/spec/edit_test.go |
Adjusts editor-selection and mutation tests. |
internal/app/azldev/core/sources/sourceprep.go |
Defaults source preparation to structural editing. |
internal/app/azldev/cmds/component/speceditor.go |
Updates CLI selection, defaults, and warnings. |
internal/app/azldev/cmds/component/speceditor_internal_test.go |
Tests CLI defaults, warnings, and accepted values. |
internal/app/azldev/agentskill/content/overlays.md.tmpl |
Adds editor-selection and migration guidance. |
internal/app/azldev/agentskill/agentskill_test.go |
Checks emitted editor guidance. |
docs/user/reference/config/overlays.md |
Documents the default and legacy migration. |
docs/user/reference/cli/azldev_component.md |
Updates editor-option help. |
docs/user/reference/cli/azldev_component_update.md |
Updates inherited editor-option help. |
docs/user/reference/cli/azldev_component_test.md |
Updates inherited editor-option help. |
docs/user/reference/cli/azldev_component_render.md |
Updates inherited editor-option help. |
docs/user/reference/cli/azldev_component_query.md |
Updates inherited editor-option help. |
docs/user/reference/cli/azldev_component_prepare-sources.md |
Updates inherited editor-option help. |
docs/user/reference/cli/azldev_component_metadata.md |
Updates inherited editor-option help. |
docs/user/reference/cli/azldev_component_list.md |
Updates inherited editor-option help. |
docs/user/reference/cli/azldev_component_history.md |
Updates inherited editor-option help. |
docs/user/reference/cli/azldev_component_diff-sources.md |
Updates inherited editor-option help. |
docs/user/reference/cli/azldev_component_changed.md |
Updates inherited editor-option help. |
docs/user/reference/cli/azldev_component_build.md |
Updates inherited editor-option help. |
docs/user/reference/cli/azldev_component_add.md |
Updates inherited editor-option help. |
Review effort: Balanced
Comment on lines
+38
to
+41
| The structural editor is the default. It preserves conditional and section structure | ||
| more reliably than the line-oriented editor. The `legacy` editor is deprecated and | ||
| emits a warning when selected with `--spec-editor legacy`; it will be removed in a | ||
| future release. The former `experimental` value is no longer accepted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Switch to using structural spec editor by default and update docs/agent skills to deprecate the legacy editor logic
We'd just need to update gdb overlays in Azure Linux after the switch, as demonstrated here: microsoft/azurelinux#20120. The rest of the components render unchanged.