fix binary cache test on old sshd

This commit is contained in:
Artemis Tosini 2024-07-17 07:00:42 +00:00
parent 731ad9d4ee
commit 46eb5369d2
Signed by: artemist
GPG key ID: EE5227935FE3FF18

View file

@ -138,8 +138,10 @@ let
targetArg = pkg: "--substitution-targets ${pkg.outPath}";
targetArgs = lib.concatMapStringsSep " " targetArg rootPaths;
in {
# We need -O for the old scp protocol because RHEL 8 has old SSH with broken SFTP
# Might be deprecated soon, so remove when we remove RHEL 8
copyTarball = ''
scp -P 20022 $ssh_opts -r ${binaryCache} vagrant@localhost:binaryCache
scp -O -P 20022 $ssh_opts -r ${binaryCache} vagrant@localhost:binaryCache
'';
install = ''
pushd binaryCache