Skip to content

Commit bcff217

Browse files
gregmagolanalexeagle
authored andcommitted
fix: remove trailing forward slash when resolving workspace root link in runfiles MANIFEST (#3093)
1 parent 6a08538 commit bcff217

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/linker/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ function main(args, runfiles) {
416416
runfilesPath = runfilesPath.slice(externalPrefix.length);
417417
}
418418
else {
419-
runfilesPath = `${workspace}/${runfilesPath}`;
419+
runfilesPath = path.posix.join(workspace, runfilesPath);
420420
}
421421
try {
422422
target = runfiles.resolve(runfilesPath);

internal/linker/link_node_modules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ export async function main(args: string[], runfiles: Runfiles) {
623623
if (runfilesPath.startsWith(externalPrefix)) {
624624
runfilesPath = runfilesPath.slice(externalPrefix.length);
625625
} else {
626-
runfilesPath = `${workspace}/${runfilesPath}`;
626+
runfilesPath = path.posix.join(workspace, runfilesPath);
627627
}
628628
try {
629629
target = runfiles.resolve(runfilesPath);

0 commit comments

Comments
 (0)