#1105·liteide

在 LiteIDE 中构建时出现"找不到包"的构建错误,go 版本为 1.13

作者: bimkal创建于 2020年2月19日更新于 2026年5月7日
  • Clean new MacOS
  • Installed Go version 1.13.8
  • Git cloned the project repository (private repo)
  • go get 'dep' * dep ensure (to download all dependencies to vendor folder)
  • go build ./... from shell, all packages build fine
  • go test ./... from shell, all tests run fine
  • Install LiteIDE X36.3
  • Opened the go project, opened one go source file
  • Tried to build one package by clicking the "B" build button on the tool bar ''' utils.go:23:2: cannot find package "GitHub.com/avct/uasurfer" in any of: /usr/local/go/src/GitHub.com/avct/uasurfer (from $GOROOT) /Users/bkuser/go/src/GitHub.com/avct/uasurfer (from $GOPATH) aws_encrypt.go:10:2: cannot find package "GitHub.com/AWS/AWS-sdk-go/AWS" in any of: /usr/local/go/src/GitHub.com/AWS/AWS-sdk-go/AWS (from $GOROOT) /Users/bkuser/go/src/GitHub.com/AWS/AWS-sdk-go/AWS (from $GOPATH) aws_encrypt.go:11:2: cannot find package "GitHub.com/AWS/AWS-sdk-go/AWS/session" in any of: /usr/local/go/src/GitHub.com/AWS/AWS-sdk-go/AWS/session (from $GOROOT) /Users/bkuser/go/src/GitHub.com/AWS/AWS-sdk-go/AWS/session (from $GOPATH) aws_encrypt.go:12:2: …

内容来源: visualfc/liteide