简体   繁体   English

从VCS签出期间,GoLand IDE不会将项目放入工作区

[英]GoLand IDE doesn't put project into workspace during checkout from VCS

If I create project from scratch, GoLand pay attention to my workspace and put project correct according to $GOPATH. 如果我从头开始创建项目,GoLand注意我的工作区,并根据$ GOPATH正确放置项目。

For example I have GOPATH: $HOME/{user}/go , so GoLand put it into : 例如,我有GOPATH: $ HOME / {user} / go ,因此GoLand将其放入:

$HOME/{user}/go/src/{myproject}

But if I try to checkout from VCS it puts into GoLandProjects directory: 但是,如果我尝试从VCS签出,它将放入GoLandProjects目录:

$HOME/GoLandProjects/{myproject}

Is it possible to change that behavior? 有可能改变这种行为吗?

You can specify the directory where the checkout is done right in the checkout dialog, see below. 您可以在“检出”对话框中指定检出完成的目录,如下所示。 vsc结帐对话框

After the first checkout, the IDE will remember where to do the next one, as it's shown in my case and it will suggest something similar. 第一次签出后,IDE会记住下一个签到处的位置,如我的案例所示,它会建议类似的内容。

However, with the rise of vgo as a dependency management tool, this will not be required anymore as the GOPATH will stop being mandatory. 但是,随着vgo成为依赖管理工具的兴起,由于GOPATH将不再是强制性的,因此不再需要此功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM