grafana / xk6-disruptor

Extension for injecting faults into k6 tests
https://k6.io/docs/javascript-api/xk6-disruptor/
GNU Affero General Public License v3.0
94 stars 7 forks source link

depsync: Download .mod file from the proxy #352

Closed codebien closed 1 year ago

codebien commented 1 year ago

Download the go.mod file from the official proxy. In this way we can support any kind of formatted version. e.g. When a specific version pinned by commit is used.

Description

Fixes # (issue)

Checklist:

roobre commented 1 year ago

Hey @codebien, thanks for this PR!

If I understand this correctly, this would allow fetching to work when the version specified in go.mod is a pseudoversion e.g. v2.1.4-0.20211119122758-180fcef48034+incompatible. Am I correct?

If so this looks awesome to me so far.

codebien commented 1 year ago

@roobre yes, exactly. I would use the k6 master which means go.k6.io/k6 v0.46.1-0.20230921075448-d1c5ee8fb28d but using the GitHub URL didn't work, so I switched to the proxy so it can resolve any version supported by go mod command.