pulumi-command
pulumi-command copied to clipboard
CopyToRemote path structure on Windows
Describe what happened
The resource provider code CopyToRemote does not take in consideration the non-posix path structure in Windows, resulting in files being copied into the remote host user home ~ with names such as literally '\install.sh' or '\scripts\install.sh'.
Pulumi version v3.191.0
Sample program
Run on Windows
copy_files = command.remote.CopyToRemote(
...
source=pulumi.FileArchive('./scripts/'),
remote_path='/scripts',
...
)
Log output
No response
Affected Resource(s)
No response
Output of pulumi about
CLI
Version 3.191.0
Go Version go1.25.0
Go Compiler gc
Plugins
KIND NAME VERSION
resource command 1.1.0
resource hcloud 1.24.0
language python 3.191.0
resource time 0.1.1
resource tls 5.2.1
Host
OS Microsoft Windows 11 Pro
Version 10.0.26100 Build 26100
Arch x86_64
Additional context
No response
Contributing
No response
@svaraborut in your example I'm assuming the source is Windows? Is the destination windows as well?
@corymhall the destination is Linux, Ubuntu 24 remote nodes. That is where the issues araises