зеркало из https://github.com/golang/appengine.git
cmd/aedeploy: ignore go1.7 build tag
The go1.7 runtime isn't out yet, but aedeploy built with a local Go 1.7 will bundle dependencies suited for a 1.7 builder. Ignore the go1.7 build tag to keep bundling dependencies like an aedeploy built with 1.6. Change-Id: I9463562ba5b6e8cbae2bf6cfcb405c9987bf27a7
This commit is contained in:
Родитель
e951d3868b
Коммит
4f7eeb5305
|
@ -115,10 +115,14 @@ func buildContext(tags []string) *build.Context {
|
|||
GOROOT: build.Default.GOROOT,
|
||||
GOPATH: build.Default.GOPATH,
|
||||
Compiler: build.Default.Compiler,
|
||||
BuildTags: append(build.Default.BuildTags, tags...),
|
||||
BuildTags: append(defaultBuildTags, tags...),
|
||||
}
|
||||
}
|
||||
|
||||
// All build tags except go1.7, since Go 1.6 is the runtime version.
|
||||
var defaultBuildTags = []string{
|
||||
"go1.1", "go1.2", "go1.3", "go1.4", "go1.5", "go1.6"}
|
||||
|
||||
// bundle bundles the app into a temporary directory.
|
||||
func (s *app) bundle() (tmpdir string, err error) {
|
||||
workDir, err := ioutil.TempDir("", "aedeploy")
|
||||
|
|
Загрузка…
Ссылка в новой задаче