[rush] "deploy --create-archive" ignores "folderToCopy" in ^5.98.0
mikeharder opened this issue · 1 comments
Summary
Starting with version 5.98.0
, the command rush deploy --create-archive
ignores the folderToCopy
specified in deploy.json
.
If a deploy.json
specifies folderToCopy
, the content of the folder is correctly copied to common/deploy
. However, the content of the folder is not added to the generated archive.
Repro steps
- Create a
deploy.json
with afolderToCopy
. - Set
rushVersion
to5.97.1
- Run
rush deploy --create-archive
- The contents of
folderToCopy
should be undercommon/deploy
, and in the zipfile. - Upgrade to
rush@5.98.0
. - Re-run
rush deploy --create-archive
- The contents of
folderToCopy
will be undercommon/deploy
, but not in the zipfile.
Details
I believe the issue is here:
rushstack/libraries/package-extractor/src/PackageExtractor.ts
Lines 446 to 453 in 7d7f84e
The folder is copied, but the files are not added to the ArchiveManager
, so they are not added to the generated zipfile.
Files copied from projects (rather than from folderToCopy
) are added to the ArchiveManager
here:
rushstack/libraries/package-extractor/src/PackageExtractor.ts
Lines 795 to 802 in 7d7f84e
Standard questions
Please answer these questions to help us investigate your issue more quickly:
Question | Answer |
---|---|
@microsoft/rush globally installed version? |
5.102.0 |
rushVersion from rush.json? |
5.98.0 |
useWorkspaces from rush.json? |
false |
Operating system? | Linux |
Would you consider contributing a PR? | No |
Node.js version (node -v )? |
16.20.2 |