pholcus icon indicating copy to clipboard operation
pholcus copied to clipboard

运行example的demo 出错, teleport 的包好像改名了, 以前的里面的方法也都没有了

Open andrace opened this issue 3 years ago • 5 comments

C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\[email protected]\app\distribute\master_api.go:10:34: undefined: teleport
C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\[email protected]\app\distribute\master_api.go:11:9: undefined: teleport C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\[email protected]\app\distribute\master_api.go:25:48: undefined: teleport C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\[email protected]\app\distribute\master_api.go:27:9: undefined: teleport C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\[email protected]\app\distribute\master_api.go:33:42: undefined: teleport C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\[email protected]\app\distribute\slave_api.go:7:2: imported and not used: "github.com/henrylee2cn/teleport" as tp C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\[email protected]\app\distribute\slave_api.go:11:30: undefined: teleport C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\[email protected]\app\distribute\slave_api.go:12:9: undefined: teleport C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\[email protected]\app\distribute\slave_api.go:23:47: undefined: teleport

andrace avatar Jul 14 '22 03:07 andrace

你执行了什么命令?不要使用 -u 升级间接依赖,同时应该开启gomod

andeya avatar Jul 14 '22 03:07 andeya

你执行了什么命令?不要使用 -u 升级间接依赖,同时应该开启gomod

go 1.18

package main

import ( "github.com/henrylee2cn/pholcus/exec" // _ "pholcus_lib_pte" // 同样你也可以自由添加自己的规则库 )

func main() { // 设置运行时默认操作界面,并开始运行 // 运行软件前,可设置 -a_ui 参数为"web"、"gui"或"cmd",指定本次运行的操作界面 // 其中"gui"仅支持Windows系统 exec.DefaultRun("gui") }

只run了demo 啥都没干

andrace avatar Jul 14 '22 03:07 andrace

用你的代码测试,我这里正常,无法复现 image

andeya avatar Jul 14 '22 03:07 andeya

你执行了什么命令?不要使用 -u 升级间接依赖,同时应该开启gomod

go 1.18

package main

import ( "github.com/henrylee2cn/pholcus/exec" // _ "pholcus_lib_pte" // 同样你也可以自由添加自己的规则库 )

func main() { // 设置运行时默认操作界面,并开始运行 // 运行软件前,可设置 -a_ui 参数为"web"、"gui"或"cmd",指定本次运行的操作界面 // 其中"gui"仅支持Windows系统 exec.DefaultRun("gui") }

只run了demo 啥都没干

用你的代码测试,我这里正常,无法复现 image

gcc 的版本用哪一个...

andrace avatar Jul 14 '22 05:07 andrace

和gcc关系吧

andeya avatar Jul 14 '22 14:07 andeya