Implement typed module contracts and conformance bindings
This commit is contained in:
@@ -99,6 +99,14 @@ let
|
||||
let
|
||||
compiled = compile node;
|
||||
candidate = builtins.fromJSON (builtins.readFile "${compiled}/candidate.json");
|
||||
componentEntries =
|
||||
if execution then
|
||||
(pkgs.lib.findFirst (
|
||||
entry: entry.revision == candidate.revision.revisionId
|
||||
) { } (builtins.fromJSON (builtins.readFile "${contract}/execution-plan.json")).definition.packages)
|
||||
.components or [ ]
|
||||
else
|
||||
[ ];
|
||||
package = builtins.getFlake (
|
||||
"git+${node.repository}?rev=${node.commit}&ref=refs/tags/quixos-reachability/${node.commit}"
|
||||
);
|
||||
@@ -119,7 +127,7 @@ let
|
||||
typescript = runtimePackages.camino-replica-core.dependencies;
|
||||
packageRevisionId = candidate.revision.revisionId;
|
||||
}
|
||||
// pkgs.lib.optionalAttrs ((candidate.revision.components or [ ]) != [ ]) {
|
||||
// pkgs.lib.optionalAttrs (componentEntries != [ ]) {
|
||||
react = {
|
||||
sdk = runtimePackages.camino-react;
|
||||
runtime = runtimePackages.camino-react-runtime;
|
||||
|
||||
Reference in New Issue
Block a user