From 1c07f0d41c99fde00e49a8b83544b51c3e4cf54c Mon Sep 17 00:00:00 2001 From: Daishan Peng Date: Tue, 8 Oct 2024 13:30:16 -0700 Subject: [PATCH] Fix: use abs path to look for metadata Signed-off-by: Daishan Peng --- pkg/client/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/common.go b/pkg/client/common.go index c635048b..2cb727c4 100644 --- a/pkg/client/common.go +++ b/pkg/client/common.go @@ -132,7 +132,7 @@ func ingestPaths(ctx context.Context, c Client, opts *IngestPathsOpts, datasetID ingestedFilesCount++ slog.Debug("Ingesting file", "path", absPath, "metadata", currentMetadata) - return ingestionFunc(sp, currentMetadata.Metadata[filepath.Base(sp)]) // FIXME: metadata + return ingestionFunc(sp, currentMetadata.Metadata[absPath]) // FIXME: metadata }) return nil })