`cannot find module providing package` encountered when go executes docker build

Viewed 65

Hey guy's I want to konw how to deal with this problem:

[go mod tidy]
go: finding module for package github.com/answerdev/answer-basic-connector
go: found github.com/answerdev/answer/cmd in github.com/answerdev/answer v0.0.0-00010101000000-000000000000
go: downloading modernc.org/cc/v3 v3.40.0
go: finding module for package github.com/answerdev/answer-basic-connector
answer imports
        github.com/answerdev/answer-basic-connector: cannot find module providing package github.com/answerdev/answer-basic-connector: module github.com/answerdev/answer-basic-connector: git ls-remote -q origin in /go/pkg/mod/cache/vcs/2eb01f4aadbb28882970063faa18a6e807b04bd4da767dddd04d856f1fa4e95b: 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.
build failed exit status 1new_answer is not exist build failed
The command '/bin/bash -c script/build_plugin.sh' returned a non-zero code: 1
1 Answers

Try to re-pull the code in the main branch.