go: cannot determine module path for source directory D:\go\code\SipSvrProxy\src\Common (outside GOP
大家好,我是躺平哥!
错误
分享一个初学者容易犯的错误。
我们在使用go mod 的时候,可能会爆一下错误
go: cannot determine module path for source directory D:\go\code\SipSvrProxy\src\Common (outside GOPATH, module path must be specified)
可能让初学go的我们一脸懵逼。
其实是在使用初始化go mod的时候使用命令出错了。
解决方案
在使用go mod init 的时候,也就是对go mod 初始化的时候,我们在后面要加上对应go文件的名字并加上 .go后缀!
例如:
问题就解决了,你会发现出现了 go mod 对应文件!
go: cannot determine module path for source directory D:\go\code\SipSvrProxy\src\Common (outside GOP相关推荐
- go mod init错误(go: cannot determine module path for source directory)
在go的项目中执行go mo init的时候会报一下错误 go: cannot determine module path for source directory F:\gowork\test5 ( ...
- go: cannot determine module path for source directory
解决方法如下: xxxxxxx\example>go mod init go: cannot determine module path for source directory xxxxx ...
- ROS Base path和Source space不一致问题,修改文件名后无法make问题,catkin_make报错问题
在一次在ROS 的学习实践中,将Ros工程目录名称更改了,source后,出现了base path和Source space不一致问题: 报错提示: Base path: /home/pot/catk ...
- cmake The source directory xxxx does not appear to contain CMakeLists.txt
执行 cmake . 的时候报错: The source directory "xxxx" does not appear to contain CMakeLists.txt 简单 ...
- vue3 Cannot find module ‘path‘. 找不到模块‘path‘
vue3 Cannot find module 'path'. 找不到模块'path' 按照 @types/node 即可 npm i @types/node -D
- 【报错】:Module path has been externalized for browser...
文章目录 报错 解决方法 Vite2+Vue3下引入path模块报错:Module "path" has been externalized for brower compatib ...
- Qt:warning: The build directory is not at the same level as the source directory
-1: warning: The build directory is not at the same level as the source directory, which could be th ...
- 如何解决CMake Error: The source directory ““ does not exist
在linux系统上编译C++代码时常常出现CMake Error: The source directory "" does not exist 详细报错信息为: CMake Er ...
- cmake error: the source directory “xxx“ does not exist.specify --help for usage, or ...
在我的共享文件夹添加新文件,make之后提示错误信息 一 .情况是这样子的,由于我前段时间把我当Ubuntu搞崩了,现在拿到的是同事给我的ubuntu还有一个sdk,新到手的sdk有一些问题,导致编译 ...
最新文章
- 【特效】移入显示移出隐藏
- UML图大科普 :14种UML图图例详解
- Lock的lockInterruptibly()
- response.setcontenttype的參数
- 吉利控股集团申请注册“富吉康”商标
- [POJ3928 Ping pong]
- 流媒体服务器设计文档,流媒体服务器设文档.doc
- 在metasploitable里面搭建ZVulDrill
- Hadoop “Hello World” 示例
- 分销系统开发 三级分销技术开发
- Vmware虚拟机和主机之间复制、粘贴内容、拖拽文件的详细方法
- Python 将tif文件分割成多个小tif
- 淘宝客导购产品设计(二)
- 使用Termux软件在安卓手机上安装ubuntu
- Excel-VBA操作文件四大方法之一(转)
- IP首部校验和的计算
- 中兴NFC手机无法读应用问题
- webatm取款操作_大话JS面向对象之开篇万物皆对象------(ATM取款机引发的深思)...
- JGit----将 Git 嵌入你的应用
- 计算机SCI期刊投稿攻略(建议收藏!) - 易智编译EaseEditing
热门文章
- ACM图论之存图方式
- 微信小程序小型按钮内文字布局变形
- Apache Log4j2 查找功能 JNDI 注入 (CVE-2021-44228)
- 2021 Vue夏季直播班心得
- 量子力学科普书籍《见微知著》为什么值得读,看看目录就懂了
- [转]程序员生涯之我见 找到自己的兴趣所在
- 关于AsyncHttpClient的cz.msebera.android.httpclient.Header
- Java ThreadFactory接口用法
- Java 中 字符串 1234 怎么转成 int?
- 自动化打卡,Tasker+模拟器远程打卡