grafana / xk6

Build k6 with extensions
Apache License 2.0
204 stars 20 forks source link

My local k6 extension wants to use my own local projects #106

Closed LOCKLOCK123 closed 4 weeks ago

LOCKLOCK123 commented 1 month ago

i use xk6 to build my k6 extension, which uses my own local projects. I add my local projects in the extension go.mod by go “replace”. But in the extension, when i use xk6 build --with command to build extension, xk6 plugin just finds some packages in my extension in the website, which is contain in my local projects. I think it should find these packages in my local projects not website. What can i do?

LOCKLOCK123 commented 4 weeks ago

I had solved the problem. When building the extension, just using --replace commands, followed the --with, to add your local package into the extension.