Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments here:
!config.disableGoProxy &&part is not necessary.disableGoProxywas really do disable the Go proxy.Let me think about this a bit and make a proposal for improvement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've checked the code again, and I believe your changes should not be necessary. The code at
ort/plugins/package-managers/go/src/main/kotlin/GoMod.kt
Line 111 in 60316b7
only specified additional environment variables use, on top of those available to the environment running ORT. So any set
GOPROXYvariable would get inherited.Can you confirm that this is the case, @losmateusz1?
Anyway, I agree that the current option name is misleading, as it does not completely disable any set
GOPROXY. I'm clarifying that in #11189.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sschuberth we can close this PR, I checked again with latest ort code and I can't reproduce the issue anymore