Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bazel: Bump nix-hacks.patch for 0.9.
- Loading branch information
Showing
4 changed files
with
62 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
pkgs/development/tools/build-managers/bazel/nix-hacks-0.4.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
diff --git a/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java b/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java | ||
index eafa09fb5..d2d5e40e8 100644 | ||
--- a/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java | ||
+++ b/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java | ||
@@ -287,21 +287,8 @@ public final class RepositoryDelegatorFunction implements SkyFunction { | ||
markerData.put(key, value); | ||
} | ||
} | ||
- boolean result = false; | ||
- if (markerRuleKey.equals(ruleKey)) { | ||
- result = handler.verifyMarkerData(rule, markerData, env); | ||
- if (env.valuesMissing()) { | ||
- return null; | ||
- } | ||
- } | ||
|
||
- if (result) { | ||
- return new Fingerprint().addString(content).digestAndReset(); | ||
- } else { | ||
- // So that we are in a consistent state if something happens while fetching the repository | ||
- markerPath.delete(); | ||
- return null; | ||
- } | ||
+ return new Fingerprint().addString(content).digestAndReset(); | ||
|
||
} catch (IOException e) { | ||
throw new RepositoryFunctionException(e, Transience.TRANSIENT); | ||
diff --git a/src/main/java/com/google/devtools/build/lib/shell/JavaSubprocessFactory.java b/src/main/java/com/google/devtools/build/lib/shell/JavaSubprocessFactory.java | ||
index a7ebc8f7a..40f2049fa 100644 | ||
--- a/src/main/java/com/google/devtools/build/lib/shell/JavaSubprocessFactory.java | ||
+++ b/src/main/java/com/google/devtools/build/lib/shell/JavaSubprocessFactory.java | ||
@@ -129,7 +129,6 @@ public class JavaSubprocessFactory implements SubprocessFactory { | ||
ProcessBuilder builder = new ProcessBuilder(); | ||
builder.command(params.getArgv()); | ||
if (params.getEnv() != null) { | ||
- builder.environment().clear(); | ||
builder.environment().putAll(params.getEnv()); | ||
} | ||
|
||
diff --git a/src/main/java/com/google/devtools/build/lib/worker/Worker.java b/src/main/java/com/google/devtools/build/lib/worker/Worker.java | ||
index 0268d1b2b..637364657 100644 | ||
--- a/src/main/java/com/google/devtools/build/lib/worker/Worker.java | ||
+++ b/src/main/java/com/google/devtools/build/lib/worker/Worker.java | ||
@@ -77,7 +77,6 @@ class Worker { | ||
new ProcessBuilder(command) | ||
.directory(workDir.getPathFile()) | ||
.redirectError(Redirect.appendTo(logFile.getPathFile())); | ||
- processBuilder.environment().clear(); | ||
processBuilder.environment().putAll(workerKey.getEnv()); | ||
|
||
this.process = processBuilder.start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters