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

BeeGo依赖问题 #106

Open
TurboHsu opened this issue Jun 14, 2020 · 0 comments
Open

BeeGo依赖问题 #106

TurboHsu opened this issue Jun 14, 2020 · 0 comments

Comments

@TurboHsu
Copy link

直接运行release的程序报错,提示

2020/06/14 10:37:18 [info] replacing callback `gorm:update_time_stamp` from /Users/aimer/go/src/github.com/auxpi/models/models.go:80
2020/06/14 10:37:18 [info] replacing callback `gorm:update_time_stamp` from /Users/aimer/go/src/github.com/auxpi/models/models.go:81
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1b8 pc=0x9a69b9]

goroutine 1 [running]:
github.com/auxpi/utils.init()
        /Users/aimer/go/src/github.com/auxpi/utils/jwt.go:24 +0xd9

然后我自己build了下 发现了如下Bug

Bug report(问题描述)

Build时BeeGo v1.11.1 require的goes已经用不了了

Steps to reproduce(问题复现步骤)

直接build,即可复现

Screenshot or Gif(截图或动态图)

直接上提示

go: github.com/astaxie/[email protected] requires
        github.com/belogik/[email protected]: invalid version: git fetch -f https://github.com/belogik/goes refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /root/go/pkg/mod/cache/vcs/0c31a160b38443d5e33ca2a5e60e51734d83293b66dc3d9b0c12699f8d2b5cec: exit status 128:
        remote: Invalid username or password.
        fatal: Authentication failed for 'https://github.com/belogik/goes/'

Server environment(服务器环境)

  • Your OS & version (服务器系统&版本):Centos7.6 x86_64
  • DataBase & version (数据库&版本):mysql5.6

Other relevant information(格外信息)

  • auxpi version:dev

经过测试的解决方案

BeeGo已经在v1.12.0更改了github.com/OwnLocal/goes v1.0.0作为依赖
所以只需要在go.sum/go.mod下更改beego的版本为v1.12.1即可
go.mod更改以下内容
github.com/astaxie/beego v1.12.1
go.sum更改以下内容
github.com/astaxie/beego v1.12.1 h1:dfpuoxpzLVgclveAXe4PyNKqkzgm5zF4tgF2B3kkM2I=
github.com/astaxie/beego v1.12.1/go.mod h1:kPBWpSANNbSdIqOc8SUL9h+1oyBMZhROeYsXQDbidWQ=

然后重新build,编译未报错,执行也正常了。

希望作者更改dev的两个文件

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