Closed EuphoryX1 closed 3 years ago
Stumbled about it today also. A workaround / hack is just to misuse the from
option.
Use
from: -C ./temporary ./
And it should work
PR #424 may be related if I understand the PR correctly.
Hi, this was improved in v4.1.1 Regards!
I tried to deploy directory which is expanded from an archive. Assume the archive is expanded in a temporary directory.
In this case from environment should be "from: ./temporary/". I expected that remote directory structure to be:
But.. As local directory structure is included in tar archive sent to remote, actual remote directory structure is:
When I used MagallanesV1 and tried the same case, remote directry strucure was what I expected.
I think the code of generating tar archive should be modified to use tar -C option.
https://github.com/andres-montanez/Magallanes/blob/e30de6b719c923d70917a9f9364efdb29b7e9362/src/Task/BuiltIn/Deploy/Tar/PrepareTask.php#L47
NOTE: This modification will break backward compatibility if from envlronment is set. Please give me some advice to extend "from" environment specification not to break compatibility.