Skip to content

Commit

Permalink
fix(runfiles): @bazel/runfiles usage with non-bzlmod repos
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Oct 11, 2024
1 parent da09d9a commit 1e000a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/runfiles/runfiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ export class Runfiles {
if (!fs.existsSync(repoMappingPath)) {
// The repo mapping manifest only exists with Bzlmod, so it's not an
// error if it's missing. Since any repository name not contained in the
// mapping is assumed to be already canonical, an empty map is
// equivalent to not applying any mapping.
return Object.create(null);
// mapping is assumed to be already canonical, no map is equivalent to
// not applying any mapping.
return undefined;
}

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

0 comments on commit 1e000a3

Please sign in to comment.