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

make pb无法在Windows使用解决方案 #2

Open
iidst opened this issue Sep 1, 2022 · 0 comments
Open

make pb无法在Windows使用解决方案 #2

iidst opened this issue Sep 1, 2022 · 0 comments

Comments

@iidst
Copy link

iidst commented Sep 1, 2022

您好,有幸看到你的mcube工具集,发现由于windows路径原因无法在windows Git Bash环境执行make pb命令,以下各人的解决方法,已验证有效,请参考!

MOD_DIR_WINDOWS := $(shell go env GOPATH | sed -e 's/\\\\\(.\)/\/\1/g' | sed 's/://g')/pkg/mod

pb_windows:  ## Copy mcube protobuf files to common/pb for Windows

	@mkdir -pv common/pb/github.com/infraboard/mcube/pb
        @rm -rf common/pb/github.com/infraboard/mcube/pb/*
	@cp -r /${MOD_DIR_WINDOWS}/${MCUBE_MODULE}@${MCUBE_VERSION}/pb/* common/pb/github.com/infraboard/mcube/pb
	@rm -rf common/pb/github.com/infraboard/mcube/pb/*/*.go

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

1 participant