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 envGOPRIVATE 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:
changed the title
cmd/go Limit simultaneous connections when downloading modulesAug 10, 2020