gpiechnik2 / xk6-smtp

k6 extension to k6 extension to use smtp protocol (sending emails). Implemented using the xk6 system.
Apache License 2.0
1 stars 2 forks source link

dial tcp: lookup go.buf.build: no such host #3

Open djdejawu opened 8 months ago

djdejawu commented 8 months ago

Hello. I'm trying to build k6 with module, but I've got an error.

> xk6 build --with github.com/gpiechnik2/xk6-smtp@latest
2024/02/10 00:56:35 [INFO] Temporary folder: C:\Users\djdejawu\AppData\Local\Temp\buildenv_2024-02-10-0056.1743224383
2024/02/10 00:56:35 [INFO] Initializing Go module
2024/02/10 00:56:35 [INFO] exec (timeout=10s): C:\Program Files\Go\bin\go.exe mod init k6
go: creating new go.mod: module k6
2024/02/10 00:56:35 [INFO] Pinning versions
2024/02/10 00:56:35 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod edit -require github.com/gpiechnik2/xk6-smtp@latest
2024/02/10 00:56:35 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
go: finding module for package github.com/nxadm/tail
go: found github.com/nxadm/tail in github.com/nxadm/tail v1.4.11
2024/02/10 00:56:37 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
2024/02/10 00:56:39 [INFO] Writing main module: C:\Users\djdejawu\AppData\Local\Temp\buildenv_2024-02-10-0056.1743224383\main.go
2024/02/10 00:56:39 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
go: downloading go.buf.build/grpc/go/prometheus/prometheus v1.4.4
go: k6 imports
        go.k6.io/k6/cmd imports
        github.com/grafana/xk6-output-prometheus-remote/pkg/remotewrite imports
        go.buf.build/grpc/go/prometheus/prometheus: unrecognized import path "go.buf.build/grpc/go/prometheus/prometheus": https fetch: Get "https://go.buf.build/grpc/go/prometheus/prometheus?go-get=1": dial tcp: lookup go.buf.build: no such host
2024/02/10 00:56:51 [INFO] Cleaning up temporary folder: C:\Users\djdejawu\AppData\Local\Temp\buildenv_2024-02-10-0056.1743224383
2024/02/10 00:56:51 [FATAL] exit status 1

> go version
go version go1.21.6 windows/amd64```
mpolynskyi commented 7 months ago

Have same problem, impossible to install @mstoykov @gpiechnik2 🙏

mstoykov commented 7 months ago

@gpiechnik2 hasn't made a release since the latest changes #2 that fixed the build and as such @latest is not going to build.

You can change @latest to @main as in

xk6 build --with github.com/gpiechnik2/xk6-smtp@latest

and that should fix it until a new release is cut

mpolynskyi commented 7 months ago

thank you! xk6 build --with github.com/gpiechnik2/xk6-smtp@main installed ❤️