Skip to content
New issue

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

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

Already on GitHub? # to your account

Re-implementation using k6foundry fails in k6 ci workflow #112

Open
pablochacin opened this issue Nov 15, 2024 · 1 comment
Open

Re-implementation using k6foundry fails in k6 ci workflow #112

pablochacin opened this issue Nov 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@pablochacin
Copy link
Collaborator

xk6 build --with github.com/grafana/xk6-js-test="$(pwd)/xk6-js-test"
time=2024-11-15T11:38:58.782+01:00 level=INFO msg="Building k6"
time=2024-11-15T11:38:58.782+01:00 level=INFO msg="Building new k6 binary (native)"
time=2024-11-15T11:38:58.797+01:00 level=INFO msg="Initializing Go module"
go: creating new go.mod: module k6
time=2024-11-15T11:38:58.800+01:00 level=INFO msg="Creating k6 main"
time=2024-11-15T11:38:58.800+01:00 level=INFO msg="adding dependency go.k6.io/k6@latest"
time=2024-11-15T11:38:58.990+01:00 level=INFO msg="importing extensions"
time=2024-11-15T11:38:58.990+01:00 level=INFO msg="adding dependency github.com/grafana/xk6-js-test@latest"
go: errors parsing go.mod:
go.mod:35:2: require github.com/grafana/xk6-js-test: git ls-remote -q origin in /home/olegbespalov/go/pkg/mod/cache/vcs/b94977bfef2ce967595556dcfe75fe1335fc229955e587b5a82502d07f2af173: exit status 128:
        fatal: could not read Username for 'https://github.com/': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
time=2024-11-15T11:39:01.674+01:00 level=INFO msg="Cleaning up work directory /tmp/k6foundry2764673324"
time=2024-11-15T11:39:01.674+01:00 level=ERROR msg="build error resolving dependency: executing go command: exit status 1"
@pablochacin pablochacin added the bug Something isn't working label Nov 15, 2024
@pablochacin
Copy link
Collaborator Author

The root cause of this is in how mod replace is implemented when replacing private modules.

@pablochacin pablochacin changed the title Re-implementation using k6build fails in k6 ci workflow Re-implementation using k6foundry fails in k6 ci workflow Dec 3, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant