Skip to content

Commit 1e000a3

Browse files
committed
fix(runfiles): @bazel/runfiles usage with non-bzlmod repos
1 parent da09d9a commit 1e000a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/runfiles/runfiles.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ export class Runfiles {
129129
if (!fs.existsSync(repoMappingPath)) {
130130
// The repo mapping manifest only exists with Bzlmod, so it's not an
131131
// error if it's missing. Since any repository name not contained in the
132-
// mapping is assumed to be already canonical, an empty map is
133-
// equivalent to not applying any mapping.
134-
return Object.create(null);
132+
// mapping is assumed to be already canonical, no map is equivalent to
133+
// not applying any mapping.
134+
return undefined;
135135
}
136136

137137
const repoMappings: RepoMappings = Object.create(null);

0 commit comments

Comments
 (0)