Cloudreve icon indicating copy to clipboard operation
Cloudreve copied to clipboard

github.com/lib/[email protected] 导致的编译失败问题?

Open Yang-qwq opened this issue 2 years ago • 3 comments

Describe the bug 直接检出后尝试编译不通过

To Reproduce Steps to reproduce the behavior:

  1. git checkout 3.6.2
  2. go build

Expected behavior

.../opt/cloudreve_src $ go build
# github.com/lib/pq
../../../home/go/pkg/mod/github.com/lib/[email protected]/user_posix.go:13:6: userCurrent redeclared in this block
        ../../../home/go/pkg/mod/github.com/lib/[email protected]/user_other.go:8:6: other declaration of userCurrent
.../opt/cloudreve_src $

Screenshots

Desktop (please complete the following information):

  • OS: None
  • Browser None
  • Version None

Smartphone (please complete the following information):

  • Device: None
  • OS: None
  • Browser None
  • Version None

Additional context 我尝试了更新出问题的包后,故障解决,并且成功通过当前版本和最新版本的编译(如下)

go get github.com/lib/pq@latest
go: downloading github.com/lib/pq v1.10.9
go: upgraded github.com/lib/pq v1.10.3 => v1.10.9

Yang-qwq avatar May 07 '23 03:05 Yang-qwq

编译目标的CPU架构是?

HFO4 avatar May 09 '23 12:05 HFO4

aarch64

Yang-qwq avatar Sep 15 '23 05:09 Yang-qwq

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 11 '24 01:09 stale[bot]