mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 14:35:45 +00:00
fix(evidence): separate source and presentation identity
This commit is contained in:
1 parent
3e8923c6eb
commit
2f27d3ac92
17 files changed
+214
-48
No files matched your search
@@ -18,7 +18,10 @@ import type {
|
||||
UnsignedAnalysisView,
|
||||
} from "./analysisView.js";
|
||||
import { analysisViewInputError } from "./analysisViewErrors.js";
|
||||
import { createAnalysisViewResultReader } from "./analysisViewParent.js";
|
||||
import {
|
||||
analysisViewSourceSubject,
|
||||
createAnalysisViewResultReader,
|
||||
} from "./analysisViewParent.js";
|
||||
import {
|
||||
boundedViewMessages,
|
||||
completeWithinViewCoverage,
|
||||
@@ -193,10 +196,11 @@ const readGpuFacts = (
|
||||
};
|
||||
if (reusable) checkedGpu.set(report, checked);
|
||||
}
|
||||
const sourceSubject = analysisViewSourceSubject(parent);
|
||||
if (
|
||||
parent.subject != null &&
|
||||
(parent.subject.local_path !== checked.report.artifact.path ||
|
||||
parent.subject.digest.sha256 !== checked.report.artifact.sha256)
|
||||
sourceSubject != null &&
|
||||
(sourceSubject.local_path !== checked.report.artifact.path ||
|
||||
sourceSubject.digest.sha256 !== checked.report.artifact.sha256)
|
||||
)
|
||||
return err(
|
||||
analysisViewInputError([
|
||||
|
||||
Reference in new issue
Block a user