Skip to content

Commit 19cd3a7

Browse files
fix: environment variable access
1 parent 143b0a2 commit 19cd3a7

File tree

1 file changed

+4
-4
lines changed
  • internal-api/src/main/java/datadog/trace/api/civisibility/config

1 file changed

+4
-4
lines changed

internal-api/src/main/java/datadog/trace/api/civisibility/config/BazelMode.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package datadog.trace.api.civisibility.config;
22

3-
import datadog.environment.EnvironmentVariables;
43
import datadog.trace.api.Config;
4+
import datadog.trace.config.inversion.ConfigHelper;
55
import datadog.trace.util.Strings;
66
import java.io.BufferedReader;
77
import java.io.IOException;
@@ -226,7 +226,7 @@ private static Path resolveRlocation(String rlocation) {
226226
return directPath;
227227
}
228228

229-
String runfilesDir = EnvironmentVariables.get("RUNFILES_DIR");
229+
String runfilesDir = ConfigHelper.env("RUNFILES_DIR");
230230
if (Strings.isNotBlank(runfilesDir)) {
231231
Path candidate = Paths.get(runfilesDir, rlocation);
232232
if (Files.exists(candidate)) {
@@ -238,7 +238,7 @@ private static Path resolveRlocation(String rlocation) {
238238
}
239239
}
240240

241-
String manifestFile = EnvironmentVariables.get("RUNFILES_MANIFEST_FILE");
241+
String manifestFile = ConfigHelper.env("RUNFILES_MANIFEST_FILE");
242242
if (Strings.isNotBlank(manifestFile)) {
243243
Path resolved = lookupInRunfilesManifest(Paths.get(manifestFile), rlocation);
244244
if (resolved != null) {
@@ -249,7 +249,7 @@ private static Path resolveRlocation(String rlocation) {
249249
}
250250
}
251251

252-
String testSrcDir = EnvironmentVariables.get("TEST_SRCDIR");
252+
String testSrcDir = ConfigHelper.env("TEST_SRCDIR");
253253
if (Strings.isNotBlank(testSrcDir)) {
254254
Path candidate = Paths.get(testSrcDir, rlocation);
255255
if (Files.exists(candidate)) {

0 commit comments

Comments
 (0)