Skip to content

Commit

Permalink
Update to karma to work with --nolegacy_external_runfiles
Browse files Browse the repository at this point in the history
Closes bazel-contrib#312

PiperOrigin-RevId: 218547300
  • Loading branch information
gregmagolan authored and alexeagle committed Oct 30, 2018
1 parent 77b62f3 commit 8e75cc9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ try
// and return the path to extract executable
function extractWebArchive(extractExe, archiveFile, executablePath) {
try {
// Paths are relative to the 'external' folder within runfiles
extractExe = extractExe ? path.join('external', extractExe) : extractExe;
archiveFile = path.join('external', archiveFile);
// Paths are relative to the root runfiles folder
extractExe = extractExe ? path.join('..', extractExe) : extractExe;
archiveFile = path.join('..', archiveFile);
const extractedExecutablePath = path.join(process.cwd(), executablePath);
if (!extractExe) {
throw new Error('No EXTRACT_EXE found');
Expand Down

0 comments on commit 8e75cc9

Please sign in to comment.