Commit b1135be
authored
fix(packaging): preserve top-level agentcore Python package in zip (#1424)
PR #1015 removed a stale CONFIG_DIR exclusion from the zip-stage
collectFiles helpers because the zip operates on the staging directory,
not the project root, and the project config dir is filtered out at the
copy stage. PR #1068 reintroduced the check via a merge resolution that
took the wrong side.
Any Python package whose top-level module is named agentcore (i.e.
staging/agentcore/) gets silently dropped from the deployment artifact
on main.
Restore the PR #1015 state: drop the CONFIG_DIR check from collectFiles
and collectFilesSync and drop the now-unused rootDir parameter and call
sites. Existing copy-stage exclusion for the project config dir is
unaffected.
Add zip-stage regression tests under issue #1408.
Closes #14081 parent 38f7144 commit b1135be
2 files changed
Lines changed: 51 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
478 | 488 | | |
479 | | - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
480 | 492 | | |
481 | | - | |
482 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
483 | 517 | | |
484 | 518 | | |
485 | | - | |
| 519 | + | |
486 | 520 | | |
487 | 521 | | |
488 | 522 | | |
489 | 523 | | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
| 524 | + | |
| 525 | + | |
499 | 526 | | |
500 | 527 | | |
501 | 528 | | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
| 529 | + | |
| 530 | + | |
506 | 531 | | |
507 | 532 | | |
508 | | - | |
| 533 | + | |
509 | 534 | | |
510 | 535 | | |
511 | 536 | | |
512 | 537 | | |
513 | | - | |
514 | | - | |
515 | | - | |
| 538 | + | |
| 539 | + | |
516 | 540 | | |
517 | 541 | | |
518 | 542 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | 206 | | |
208 | 207 | | |
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
212 | | - | |
| 211 | + | |
213 | 212 | | |
214 | 213 | | |
215 | 214 | | |
| |||
398 | 397 | | |
399 | 398 | | |
400 | 399 | | |
401 | | - | |
| 400 | + | |
402 | 401 | | |
403 | 402 | | |
404 | 403 | | |
405 | 404 | | |
406 | 405 | | |
407 | | - | |
408 | 406 | | |
409 | 407 | | |
410 | 408 | | |
411 | 409 | | |
412 | 410 | | |
413 | | - | |
| 411 | + | |
414 | 412 | | |
415 | 413 | | |
416 | 414 | | |
| |||
422 | 420 | | |
423 | 421 | | |
424 | 422 | | |
425 | | - | |
| 423 | + | |
426 | 424 | | |
427 | 425 | | |
428 | 426 | | |
| |||
0 commit comments