Commit cdc05fd
committed
Install Copilot CLI into the agent tool cache (ADR §10093)
Replace the prior `npm install -g` (which puts the binary on the global PATH but
not in the agent tool cache) with a tool-cache install at
$AGENT_TOOLSDIRECTORY/copilot-cli/<version>/x64/ plus the matching
`x64.complete` marker. This matches the layout that the runtime resolver
in gh-aw-actions/setup expects from `tc.find("copilot-cli", ...)`, so
hosted runner jobs hit a warm cache instead of re-installing the CLI on
every run.
Mirrors the conventions already used by install-awf.sh and
install-codeql-bundle.sh in the same directory. Updates the Pester test
to validate the tool-cache layout (directory, bin/copilot, and .complete
marker) in Tools.Tests.ps1, mirroring the existing AWF block, and drops
the now-stale `copilot --version` check from CLI.Tools.Tests.ps1 since
PATH augmentation is handled at runtime by the setup action, not by the
bake.1 parent c137786 commit cdc05fd
3 files changed
Lines changed: 38 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
0 commit comments