Skip to content

Commit

Permalink
fix: remove trailing forward slash when resolving workspace root link…
Browse files Browse the repository at this point in the history
… in runfiles MANIFEST (#3093)
  • Loading branch information
gregmagolan committed Nov 22, 2021
1 parent 85094e4 commit 6af7317
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/linker/index.js
Expand Up @@ -416,7 +416,7 @@ function main(args, runfiles) {
runfilesPath = runfilesPath.slice(externalPrefix.length);
}
else {
runfilesPath = `${workspace}/${runfilesPath}`;
runfilesPath = path.posix.join(workspace, runfilesPath);
}
try {
target = runfiles.resolve(runfilesPath);
Expand Down
2 changes: 1 addition & 1 deletion internal/linker/link_node_modules.ts
Expand Up @@ -623,7 +623,7 @@ export async function main(args: string[], runfiles: Runfiles) {
if (runfilesPath.startsWith(externalPrefix)) {
runfilesPath = runfilesPath.slice(externalPrefix.length);
} else {
runfilesPath = `${workspace}/${runfilesPath}`;
runfilesPath = path.posix.join(workspace, runfilesPath);
}
try {
target = runfiles.resolve(runfilesPath);
Expand Down

0 comments on commit 6af7317

Please sign in to comment.