Skip to content

Commit 7bd02fd

Browse files
jorgeebentsherman
authored andcommitted
Fix lineage input data with file holder source path
Signed-off-by: jorgee <[email protected]>
1 parent 9bcf801 commit 7bd02fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/nf-lineage/src/main/nextflow/lineage/LinObserver.groovy

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,11 @@ class LinObserver implements TraceObserverV2 {
465465
private List<Object> manageFileInParam(List<FileHolder> files, PathNormalizer normalizer){
466466
final paths = new LinkedList<Object>();
467467
for( FileHolder it : files ) {
468-
final ref = getSourceReference(it.storePath)
468+
final path = it.sourcePath ?: it.storePath
469+
final ref = getSourceReference(path)
469470
paths.add(ref ?: new DataPath(
470-
normalizer.normalizePath(it.storePath),
471-
Checksum.ofNextflow(it.storePath))
471+
normalizer.normalizePath(path),
472+
Checksum.ofNextflow(path))
472473
)
473474
}
474475
return paths

0 commit comments

Comments
 (0)