diff options
Diffstat (limited to 'openspec/changes/fix-mason-installer-deps/specs/editor-toolchain')
| -rw-r--r-- | openspec/changes/fix-mason-installer-deps/specs/editor-toolchain/spec.md | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/openspec/changes/fix-mason-installer-deps/specs/editor-toolchain/spec.md b/openspec/changes/fix-mason-installer-deps/specs/editor-toolchain/spec.md new file mode 100644 index 0000000..8298fbd --- /dev/null +++ b/openspec/changes/fix-mason-installer-deps/specs/editor-toolchain/spec.md | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | ## Purpose | ||
| 2 | |||
| 3 | Provisions, via the shared home-manager profile, the runtime toolchain that the | ||
| 4 | externally Stow-managed Neovim/mason.nvim config depends on to install and run LSP | ||
| 5 | servers, formatters, and debug adapters — without home-manager owning that editor | ||
| 6 | config itself. | ||
| 7 | |||
| 8 | ## ADDED Requirements | ||
| 9 | |||
| 10 | ### Requirement: mason.nvim installer dependencies are provisioned | ||
| 11 | The shared home-manager profile SHALL include a Node.js runtime (providing `npm`), a | ||
| 12 | Python 3 interpreter (providing `python3`), and `unzip` on `PATH`, so that | ||
| 13 | `mason.nvim`'s package installers can locate the tools they shell out to. | ||
| 14 | |||
| 15 | #### Scenario: npm-based Mason package installs successfully | ||
| 16 | - **WHEN** the shared home profile is activated and `mason.nvim` installs an | ||
| 17 | npm-based package (for example an LSP server distributed via npm) | ||
| 18 | - **THEN** `mason.nvim`'s installer finds `npm` on `PATH` and the installation does | ||
| 19 | not fail with an `ENOENT`/"could not find executable" error for `npm` | ||
| 20 | |||
| 21 | #### Scenario: Python-based Mason package installs successfully | ||
| 22 | - **WHEN** the shared home profile is activated and `mason.nvim` installs a | ||
| 23 | Python-based package (for example `debugpy`) | ||
| 24 | - **THEN** `mason.nvim`'s installer finds a `python3` interpreter on `PATH` and the | ||
| 25 | installation does not fail with a "no python3 installation found" error | ||
| 26 | |||
| 27 | #### Scenario: Archive-based Mason package installs successfully | ||
| 28 | - **WHEN** the shared home profile is activated and `mason.nvim` installs a package | ||
| 29 | distributed as a zip archive (for example `terraform-ls`) | ||
| 30 | - **THEN** `mason.nvim`'s installer finds `unzip` on `PATH` and the installation does | ||
| 31 | not fail with an `ENOENT`/"could not find executable" error for `unzip` | ||
| 32 | |||
| 33 | ### Requirement: Editor toolchain packages do not manage editor configuration | ||
| 34 | Packages provisioned by this capability SHALL supply only the underlying | ||
| 35 | interpreters/tools that the externally-managed Neovim dotfiles config depends on; | ||
| 36 | this capability SHALL NOT generate, own, or otherwise manage any Neovim | ||
| 37 | configuration file (for example `init.lua` or plugin/LSP configuration). | ||
| 38 | |||
| 39 | #### Scenario: No competing Neovim configuration is generated | ||
| 40 | - **WHEN** the shared home profile provisions the editor toolchain packages | ||
| 41 | - **THEN** no Neovim configuration file is created or managed by this capability — | ||
| 42 | the externally Stow-managed dotfiles config remains the sole owner of that | ||
| 43 | configuration | ||
