cmd/go: limit simultaneous connections when downloading modules #40671
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
New feature
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go build -v
What did you expect to see?
Modules downloaded properly
What did you see instead?
Modules downloaded properly
Feature request
We currently use go as for all of our code. We have go libraries as dependencies which use a private repository. I have setup the
go env
GOPRIVATE
correctly.The server hosting our private repository currently only allows ssh connections to git. I have successfully setup git to pull modules over ssh using
git config --global url."git@<private_repo>:".insteadOf "https://<private_repo>/"
However our IT policy stats that we can only have 10 simultaneous ssh connections to our git repository.
This policy is implemented using the 10:30:x where after 10 simultaneous connections the drop rate is 30%.
If any code has more than 10 libraries then our CI/CD pipeline fails because of that rule and because go build -v pulls dependencies simultaneously.
The feature I'm requesting is to somehow limit the number of simultaneously connections to a host when downloading modules.
What comes to mind is a command line option in
go mod download
to limit simultaneous connections or maybe an env variable.Thanks for your consideration.
The text was updated successfully, but these errors were encountered: