Commit 99aa8f8
Fix PixiBuilder.build() to fully install the pixi environment
Previously, the content-based code paths (pixi.toml, pyproject.toml,
environment.yml) wrote the manifest file but never ran `pixi install`,
so .pixi/envs/default was only created later, on demand, when the first
`pixi run` was invoked. The fix moves `pixi install` into
createEnvironment(), covering all build() exit paths uniformly.
Adds testBuildInstallsEnv() which asserts .pixi/envs/default exists
immediately after build() returns, before any service is launched.
To accommodate this change, WrapTest.testWrapPixi now needs to write a
valid pixi.toml instead of an empty one, since pixi install now happens
even when wrapping an existing environment, and it rejects empty
manifests. So we now write a minimal valid [workspace] declaration to
satisfy pixi install, and switch the finally-block cleanup to
FilePaths.deleteRecursively because pixi install creates a .pixi/ tree.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 45a9b8d commit 99aa8f8
3 files changed
Lines changed: 45 additions & 6 deletions
File tree
- src
- main/java/org/apposed/appose/builder
- test/java/org/apposed/appose/builder
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
273 | | - | |
274 | | - | |
| 272 | + | |
275 | 273 | | |
276 | 274 | | |
277 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
278 | 289 | | |
279 | 290 | | |
280 | 291 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
220 | 241 | | |
221 | 242 | | |
222 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
68 | | - | |
69 | | - | |
| 76 | + | |
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
| |||
0 commit comments