Skip to content
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

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

Open
andrace opened this issue Jul 14, 2022 · 5 comments

Comments

@andrace
Copy link

andrace commented Jul 14, 2022

C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\pholcus@v1.3.4\app\distribute\master_api.go:10:34: undefined: teleport
C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\pholcus@v1.3.4\app\distribute\master_api.go:11:9: undefined: teleport
C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\pholcus@v1.3.4\app\distribute\master_api.go:25:48: undefined: teleport
C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\pholcus@v1.3.4\app\distribute\master_api.go:27:9: undefined: teleport
C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\pholcus@v1.3.4\app\distribute\master_api.go:33:42: undefined: teleport
C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\pholcus@v1.3.4\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\pholcus@v1.3.4\app\distribute\slave_api.go:11:30: undefined: teleport
C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\pholcus@v1.3.4\app\distribute\slave_api.go:12:9: undefined: teleport
C:\Users\admin\go\pkg\mod\github.com\henrylee2cn\pholcus@v1.3.4\app\distribute\slave_api.go:23:47: undefined: teleport

@andeya
Copy link
Owner

andeya commented Jul 14, 2022

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

@andrace
Copy link
Author

andrace commented Jul 14, 2022

你执行了什么命令?不要使用 -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 啥都没干

@andeya
Copy link
Owner

andeya commented Jul 14, 2022

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

@andrace
Copy link
Author

andrace commented Jul 14, 2022

你执行了什么命令?不要使用 -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 的版本用哪一个...

@andeya
Copy link
Owner

andeya commented Jul 14, 2022

和gcc关系吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants