Skip to content

Commit b1d52e6

Browse files
committed
chore(go): Introduce a better name for the direct proxy option
The new name makes more clear that the intention was not to disable (any default value of) the `GOPROXY` completely. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 9e2dc86 commit b1d52e6

File tree

1 file changed

+3
-3
lines changed
  • plugins/package-managers/go/src/main/kotlin

1 file changed

+3
-3
lines changed

plugins/package-managers/go/src/main/kotlin/GoMod.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ data class GoModConfig(
7777
* analyze correctly if e.g. tags were removed from repositories. In such cases the proxy should not be disabled to
7878
* still get cached metadata.
7979
*/
80-
@OrtPluginOption(defaultValue = "true")
81-
val disableGoProxy: Boolean
80+
@OrtPluginOption(defaultValue = "true", aliases = ["disableGoProxy"])
81+
val forceDirectGoProxy: Boolean
8282
)
8383

8484
/**
@@ -100,7 +100,7 @@ class GoMod(
100100
private val goEnvironment = buildMap {
101101
put("GOWORK", "off")
102102

103-
if (config.disableGoProxy) {
103+
if (config.forceDirectGoProxy) {
104104
val cleanGoPath = createOrtTempDir()
105105
put("GOPATH", cleanGoPath.absolutePath)
106106
put("GOPROXY", "direct")

0 commit comments

Comments
 (0)