Skip to content

Commit c421117

Browse files
committed
fix: if the extension is discovery only, it should not be installable
1 parent 5048406 commit c421117

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

extensions/selftest/commands/selftest.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,19 @@ specify extension search "$ARGUMENTS"
2424

2525
### Step 2: Simulate Installation
2626

27-
Simulate adding the extension to the current workspace configuration.
27+
First, try to add the extension to the current workspace configuration directly. If the catalog provides the extension as `install_allowed: false` (discovery-only), this step is *expected* to fail.
2828

2929
```bash
3030
specify extension add "$ARGUMENTS"
3131
```
3232

33+
Then, simulate adding the extension by installing it from its catalog download URL, which should bypass the restriction.
34+
Obtain the extension's `download_url` from the catalog metadata (for example, via a catalog info command or UI), then run:
35+
36+
```bash
37+
specify extension add --from "<download_url>"
38+
```
39+
3340
### Step 3: Registration Verification
3441

3542
Once the `add` command completes, verify the installation by checking the project configuration.

0 commit comments

Comments
 (0)