我正在尝试导入以下git项目github.com/tebeka/selenium
当我使用标准的Go依赖项管理时,它就像go get github.com/tebeka/selenium
一样简单,然后
import ("github.com/tebeka/selenium"
"github.com/tebeka/selenium/chrome")
但是,当我尝试对vgo(模块)执行相同的操作时,出现以下错误:
unknown import path "github.com/tebeka/selenium/chrome": cannot find module providing package github.com/tebeka/selenium/chrome
Go mod生成以下go.mod文件
module mymodule
require (
github.com/BurntSushi/toml v0.3.1
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
github.com/tebeka/selenium v0.9.3
)