Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
djdejawu opened this issue Feb 9, 2024 · 3 comments
Open

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

djdejawu opened this issue Feb 9, 2024 · 3 comments

Comments

@djdejawu
Copy link

djdejawu commented Feb 9, 2024

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
Copy link

mpolynskyi commented Mar 1, 2024

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

@mstoykov
Copy link
Contributor

mstoykov commented Mar 1, 2024

@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
Copy link

mpolynskyi commented Mar 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants