windows - Revel cli 不会创建新项目
问题描述
我正在尝试使用 revel 的 CLI 开始一个新项目,revel new revelApp1
它给了我一些错误:
C:\Users\myUserame\go\src>revel new revelApp1
Revel executing: create a skeleton Revel application
Error stack [utils.go:109 command_config.go:232 new.go:187 new.go:126 revel.go:109 proc.go:203 asm_amd64.s:1357]
ERROR 20:04:52 new.go:187: Failed to import package error="exit status 1" gopath=C:\\Users\\myUserame\\go GO-ROOT=C:\\Go output="#
cd C:\\Users\\myUserame\\go\\src\\github.com\\mattn\\go-isatty; git pull --ff-only\nFrom https://github.com/mattn/go-isatty\n 0e9ddb7..cb30d62 mas
ter -> origin/master\n * [new tag] v0.0.11 -> v0.0.11\n * [new tag] v0.0.12 -> v0.0.12\nerror: Your local changes to the
following files would be overwritten by merge:\n\tgo.mod\nPlease commit your changes or stash them before you merge.\nAborting\npackage github.com/
mattn/go-isatty: exit status 1\n"
ERROR 20:04:52 proc.go:203: Unable to execute error="Failed to fetch revel github.com/revel/revel[error exit status 1]"
GOHOSTOS=windows
GOPATH=C:\Users\myUserame\go
GOBIN=C:\Go\bin
解决方案
推荐阅读
- node.js - 具有版本控制的节点模块(代码共享)
- mysql - 如何在 mySQL 中将行转换为列
- mysql - Mysql 不返回插入行的正确 id
- javascript - Toolip Qtip 与谷歌图表表
- excel - powershell脚本超时
- angular - Angular 在组件使用中包含 CDN
- bash - 递归重命名文件和替换字符
- swift - 有没有办法根据最终都可以由特定类型表示的参数类型来简化这个“重载矩阵”?
- android - Android App 查看上传到云存储的图片
- php - AWS S3 使用 PHP 开发工具包上传到法兰克福地区 - 访问被拒绝错误