build 命令

帮助信息:gopm build -hgopm help build

  1. NAME:
  2. build - link dependencies and go build
  3. USAGE:
  4. command build [command options] [arguments...]
  5. DESCRIPTION:
  6. Command build links dependencies according to gopmfile,
  7. and execute 'go build'
  8. gopm build <go build commands>
  9. OPTIONS:
  10. --tags apply build tags
  11. --update, -u update pakcage(s) and dependencies if any
  12. --remote, -r build with pakcages in gopm local repository only
  13. --verbose, -v show process details

gopm build <go build commands>

  • 功能:根据 gopmfile 链接依赖并执行 go build。
  • 说明:下载丢失的依赖并链接,然后构建二进制。
  • 示例:gopm build

选项

  • —tags:应用构建 tags。
  • —update, -u:在构建之前检查包和依赖更新。
  • —verbose, -v:显示详细信息。