duanjianxi8439 2018-11-29 05:31
浏览 59

捆绑软件:在当前目录中找不到软件包:PWD中没有可构建的Go源文件

Using the go bundle too located here:

https://godoc.org/golang.org/x/tools/cmd/bundle

I try running:

bundle -o bun ./builds/one

and I get this error:

bundle: cannot find package in current directory: no buildable Go source files in $PWD

Why is the tool not understanding that I want to search for go files in

$PWD/builds/one

not

$PWD

?

I tried using an absolute path instead of relative path, same problem. The directory looks like:

$PWD/
  builds/
      one/
        bar/
          bar.go
        foo/
          foo.go
        one.go

maybe I need to set $GOPATH or $GOROOT? I tried setting those, same problem.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 comsol稳态求解器 找不到解,奇异矩阵有1个空方程返回的解不收敛。没有返回所有参数步长;pid控制
    • ¥15 怎么让wx群机器人发送音乐
    • ¥15 fesafe材料库问题
    • ¥35 beats蓝牙耳机怎么查看日志
    • ¥15 Fluent齿轮搅油
    • ¥15 八爪鱼爬数据为什么自己停了
    • ¥15 交替优化波束形成和ris反射角使保密速率最大化
    • ¥15 树莓派与pix飞控通信
    • ¥15 自动转发微信群信息到另外一个微信群
    • ¥15 outlook无法配置成功