Fifth beta - adding support for go run command.
Golang Build: add the Run variant to the build system

This change alters how the go subprocess is killed to ensure that
the temporary binary executed during "go run" is also killed so
that users can cancel the Run variant like the other variants.

Additionally, there is support for a file path to the run variant
so that users can create a project setting that specifies the file
to always pass to "go run". The file path may be relative to
$GOPATH/src/, for multi-user or cross-platform development.
The relative file path functionality supports multiple entries in
$GOPATH.

Change-Id: I7cf3b3e9ff89665ea0cd776fe6facb164575fecb
Reviewed-on: https://go-review.googlesource.com/16441
Reviewed-by: Glenn Lewis <gmlewis@google.com>
Reviewed-by: Jason Buberel <jbuberel@google.com>
12 files changed
tree: 8b2af61a1c147677569fc774de88f2d5f3d411ce
  1. .gitignore
  2. .pep8
  3. AUTHORS
  4. CONTRIBUTING.md
  5. CONTRIBUTORS
  6. Default.sublime-commands
  7. Go.sublime-build
  8. Golang Build Output.tmLanguage
  9. LICENSE
  10. PATENTS
  11. changelog.md
  12. dependencies.json
  13. dev/
  14. docs/
  15. golang_build.py
  16. readme.md
readme.md

Golang Build

Golang Build is a Sublime Text package for compiling Go projects. It provides integration between Sublime Text and the command line go tool.

The package consists of the following features:

  • A Sublime Text build system for executing:
    • go build
    • go run
    • go install
    • go test
    • go clean
    • Cross-compilation using go build with GOOS and GOARCH
  • Sublime Text command palette commands to:
    • Execute go get
    • Open a terminal into a Go workspace

Installation

The Golang Build package is installed by using Package Control.

  • If Package Control is not installed, follow the Installation Instructions
  • Open the Sublime Text command palette and run the Package Control: Install Package command
  • Type Golang Build and select the package to perform the installation

Documentation

End User

Contributor