Failure building cerc/plugeth container #528

Closed
opened 2023-09-08 20:54:33 +00:00 by dboreham · 3 comments
Owner

Run:

laconic-so --stack fixturenet-plugeth-tx build-containers

get:

Step 6/10 : RUN if [ -n "$GIT_VDBTO_TOKEN" ]; then git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi &&     go mod download &&     rm -f ~/.gitconfig
 ---> Running in 0afe34f62f8b
go: github.com/openrelayxyz/plugeth-utils@v1.2.0 (replaced by git.vdb.to/cerc-io/plugeth-utils@v0.0.0-20230706160122-cd41de354c46): version "v0.0.0-20230706160122-cd41de354c46" invalid: git ls-remote -q origin in /go/pkg/mod/cache/vcs/95538bf3941238e77efdceac1a2ab6ebbf853372553d2a1a962e55829bca4811: exit status 128:
        fatal: could not read Username for 'https://git.vdb.to': 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.
The command '/bin/sh -c if [ -n "$GIT_VDBTO_TOKEN" ]; then git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi &&     go mod download &&     rm -f ~/.gitconfig' returned a non-zero code: 1
Error running build for cerc/plugeth-statediff
FATAL Error: container build failed and --continue-on-error not set, exiting
Run: ``` laconic-so --stack fixturenet-plugeth-tx build-containers ``` get: ``` Step 6/10 : RUN if [ -n "$GIT_VDBTO_TOKEN" ]; then git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && go mod download && rm -f ~/.gitconfig ---> Running in 0afe34f62f8b go: github.com/openrelayxyz/plugeth-utils@v1.2.0 (replaced by git.vdb.to/cerc-io/plugeth-utils@v0.0.0-20230706160122-cd41de354c46): version "v0.0.0-20230706160122-cd41de354c46" invalid: git ls-remote -q origin in /go/pkg/mod/cache/vcs/95538bf3941238e77efdceac1a2ab6ebbf853372553d2a1a962e55829bca4811: exit status 128: fatal: could not read Username for 'https://git.vdb.to': 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. The command '/bin/sh -c if [ -n "$GIT_VDBTO_TOKEN" ]; then git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && go mod download && rm -f ~/.gitconfig' returned a non-zero code: 1 Error running build for cerc/plugeth-statediff FATAL Error: container build failed and --continue-on-error not set, exiting ```
Author
Owner

We need to pass an access token for the git repo that go needs into the docker build as GIT_VDBTO_TOKEN

We need to pass an access token for the git repo that go needs into the docker build as `GIT_VDBTO_TOKEN`
Author
Owner

Like our approach for NPM, we will assume only one private dependency source, hence only one access token env var will be supplied : CERC_GO_AUTH_TOKEN.

Like our approach for NPM, we will assume only one private dependency source, hence only one access token env var will be supplied : `CERC_GO_AUTH_TOKEN`.
Author
Owner
@zramsay
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#528
No description provided.