3 ms·
Having worked on that code (in Packer) - the WinRM protocol is completely unsuitable for use as an SCP replacement. It's amazing it works at all even for small
by jen20 11y ago
Having worked on that code (in Packer) - the WinRM protocol is completely unsuitable for use as an SCP replacement. It's amazing it works at all even for small files! The actual "winrmcp" implementation is here https://github.com/packer-community/winrmcp https://github.com/packer-community/winrmcp if you're interested in the inner workings.
- MichaelGG 11y agoOK, but that code (cp.go) uploads base64 chunks of 8K and echo's them to a file and decodes when done. That surely isn't the real WinRM file copy implementation right? Well... I just went looking for how it's implemented and holy shit I don't think they considered this case. Top results say "use a file share". Wow. I feel less inadequate.
- togusa 11y agoYep that's horrible whatever the basis for it is.
- togusa 11y agoOh wow that's just horrible. I wish I hadn't looked now!