Commit 5f151e6
committed
fix(php plugin): reference php output via explicit flake fragment
The php plugin's generated flake exports two packages (php and composer),
but referenced php via the bare `path:{{ .Virtenv }}/flake` (the flake's
`default` output) while composer used an explicit `#composer` fragment.
Devbox's own flake example documents that flakes exporting more than one
package must be referenced with explicit url fragments
(e.g. `path:.../flake#pkg`); the bare `default` reference is intended for
single-output flakes. Relying on the bare default for one of two outputs is
fragile and has been reported to result in the `php` binary not being linked
into the environment (only `composer` appears).
Add a named `php` output to the plugin flake (keeping `default` for
backwards compatibility) and reference it explicitly as
`path:.../flake#php`, mirroring the working `#composer` entry. Bump the
plugin version so cached create_files are regenerated.
Fixes #27881 parent be5b810 commit 5f151e6
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
0 commit comments