ocamlPackages.awa: 0.6.1 -> 0.7.0 (#571656)

This commit is contained in:
Vincent Laporte
2026-10-08 12:55:36 +00:00
committed by GitHub
3 changed files with 46 additions and 3 deletions

View File

@@ -20,11 +20,11 @@
buildDunePackage (finalAttrs: {
pname = "awa";
version = "0.6.1";
version = "0.7.0";
src = fetchurl {
url = "https://github.com/mirage/awa-ssh/releases/download/v${finalAttrs.version}/awa-${finalAttrs.version}.tbz";
hash = "sha256-xis3+I4cY9gQVSZmMCavIl9qGe7njoRQKfFZ6yh1kQE=";
hash = "sha256-NGjkX5ZXpp1qyZnBgUBJEaSdgOYGqGkSvTD3shwXDpc=";
};
propagatedBuildInputs = [

View File

@@ -0,0 +1,42 @@
--- a/src/git-mirage/git_mirage_ssh.ml
+++ b/src/git-mirage/git_mirage_ssh.ml
@@ -3,7 +3,7 @@
type endpoint = {
port : int;
hostname : string;
- authenticator : Awa.Keys.authenticator option;
+ authenticator : Awa.Keys.authenticator;
user : string;
credentials : [ `Password of string | `Pubkey of Awa.Hostkey.priv ];
path : string;
@@ -67,8 +67,8 @@
>>= function
| Error (`Msg err) -> Lwt.return_error (`Connect (`Msg err))
| Ok ((_ipaddr, _port), flow) -> (
- client_of_flow ?authenticator:edn.authenticator ~user:edn.user
- edn.credentials channel_request flow
+ client_of_flow edn.authenticator ~user:edn.user edn.credentials
+ channel_request flow
>>= function
| Error err -> Lwt.return_error (`Connect err)
| Ok _ as v -> Lwt.return v)
@@ -130,7 +130,7 @@
req Smart_git.git_capabilities;
opt git_mirage_ssh_key;
opt git_mirage_ssh_password;
- opt git_mirage_ssh_authenticator;
+ req git_mirage_ssh_authenticator;
]
~k:k1 ctx
in
--- a/src/git-mirage/git_mirage_ssh.mli
+++ b/src/git-mirage/git_mirage_ssh.mli
@@ -1,7 +1,7 @@
type endpoint = {
port : int;
hostname : string;
- authenticator : Awa.Keys.authenticator option;
+ authenticator : Awa.Keys.authenticator;
user : string;
credentials : [ `Password of string | `Pubkey of Awa.Hostkey.priv ];
path : string;

View File

@@ -37,7 +37,8 @@ buildDunePackage {
inherit (git) version src;
minimalOCamlVersion = "4.08";
# host key authenticator is mandatory in awa 0.7.0
patches = [ ./mirage-awa-0.7.0.patch ];
buildInputs = [
happy-eyeballs-mirage