You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.
Though! It seems to me, that copyOptions was intended to merge, instead of overwrite?
And in most cases it would, but since deploy.remoteCopy has a default, if I do not specify custom deploy.remoteCopy config, it uses the default ({ rsync: ['--del'] }), which, when spread in copyOptions would overwrite any rsync setting set in defaultOptions.
The text was updated successfully, but these errors were encountered:
I required custom
rsync
options, and initially set up my config like:Expecting the options to be passed, but actually here:
shipit/packages/shipit-cli/src/Shipit.js
Line 251 in 6ba6f00
Spread operator doesn't merge, but overrides.
Thankfully,
shipit-deploy
provides entry point to extend:shipit/packages/shipit-deploy/src/tasks/deploy/update.js
Line 61 in 6ba6f00
And yeah, changing my config to:
Works flawlessly!
Though! It seems to me, that
copyOptions
was intended to merge, instead of overwrite?And in most cases it would, but since
deploy.remoteCopy
has a default, if I do not specify customdeploy.remoteCopy
config, it uses the default ({ rsync: ['--del'] }
), which, when spread incopyOptions
would overwrite anyrsync
setting set indefaultOptions
.The text was updated successfully, but these errors were encountered: