Skip to content

Commit

Permalink
Expose run_input
Browse files Browse the repository at this point in the history
  • Loading branch information
patricoferris committed Jul 6, 2024
1 parent 5f73e23 commit 3242b3d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/build.ml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module Make (Raw_store : S.STORE) (Sandbox : S.SANDBOX) (Fetch : S.FETCHER) = st
network : string list;
mount_secrets : Config.Secret.t list;
rom : Obuilder_spec.Rom.t list;
} [@@deriving sexp_of]
} [@@deriving sexp]

let run t ~switch ~log ~cache run_input =
let input = sexp_of_run_input run_input in
Expand Down
14 changes: 13 additions & 1 deletion lib/s.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open Sexplib.Std

type id = string [@@deriving sexp_of]
type id = string [@@deriving sexp]

type tag = [
| `Heading (** Introduces a new build step *)
Expand All @@ -10,6 +10,18 @@ type tag = [

type logger = tag -> string -> unit

type run_input = {
base : id;
workdir : string;
user : Obuilder_spec.user;
env : Config.env;
cmd : string;
shell : string list;
network : string list;
mount_secrets : Config.Secret.t list;
rom : Obuilder_spec.Rom.t list;
} [@@deriving sexp]

module type STORE = sig
type t

Expand Down

0 comments on commit 3242b3d

Please sign in to comment.