-
Notifications
You must be signed in to change notification settings - Fork 835
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
Error step "go build" #741
Comments
The error messages you're seeing indicate a common issue in Go projects related to package management and import paths, especially when vendoring is involved. Your project is trying to use two versions of the Here’s how you can resolve this issue:
Start with these steps, and they should help you resolve the import conflicts in your Go project. If the issue persists, it might be useful to check if there are any specific configurations in your environment that are influencing how packages are imported. |
When I execute the "go build" command, I get the following error in the terminal:
./libretaxi.go:43:14: cannot use bot (type *"github.com/go-telegram-bot-api/telegram-bot-api".BotAPI) as type *"libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".BotAPI in assignment ./libretaxi.go:58:42: cannot use u (type "github.com/go-telegram-bot-api/telegram-bot-api".UpdateConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".UpdateConfig in argument to context.Bot.GetUpdatesChan ./libretaxi.go:79:56: cannot use "github.com/go-telegram-bot-api/telegram-bot-api".NewCallback(cb.ID, "👌 OK") (type "github.com/go-telegram-bot-api/telegram-bot-api".CallbackConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".CallbackConfig in argument to context.Bot.AnswerCallbackQuery ./libretaxi.go:84:30: cannot use removeButton (type "github.com/go-telegram-bot-api/telegram-bot-api".EditMessageReplyMarkupConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".Chattable in argument to context.Bot.Send: "github.com/go-telegram-bot-api/telegram-bot-api".EditMessageReplyMarkupConfig does not implement "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".Chattable (missing "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".method method) have "github.com/go-telegram-bot-api/telegram-bot-api".method() string want "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".method() string ./libretaxi.go:149:5: cannot use msg (type "github.com/go-telegram-bot-api/telegram-bot-api".MessageConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".MessageConfig in field value
Can you help me?
Thanks
The text was updated successfully, but these errors were encountered: