go-sftp
go-sftp copied to clipboard
Enable windows tests
An alternative to https://github.com/moov-io/go-sftp/pull/188
I don't know why they recommended -SwitchLinuxEngine, maybe its an additional (undocumented) flag to -SwitchDaemon.
Let's try with this command:
C:\"Program Files"\Docker\Docker\DockerCli.exe -SwitchDaemon
Let's forget what I said earlier. I tried DockerCli.exe on my local machine, and -SwitchLinuxEngine switches immediately to Linux containers, no restart needed.
Per Github runner windows README Docker is already installed. Maybe because you install Docker via choco, this messes things up.
I was unable to find / run DockerCli.exe without installing Docker CE. Do you know the install path in Windows actions runners?
Linux containers seem to be the default, because when I use -SwitchDaemon there's output about using Windows containers.
https://github.com/moov-io/go-sftp/actions/runs/7905204936/job/21577274174
I've opened an issue with Github Support on why this isn't working.
I may try to publish windows/amd64 images from emberstack/docker-sftp which is already in C#. Testing against multiple servers is a good idea too.