From a388976807f5f369cc7e0e53da9197aa8fa9bb5a Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Mon, 8 Sep 2014 13:33:03 -0700 Subject: [PATCH] Fixing build constraints for GAE and GAE managed runtime. GAE managed VM runtime contains both appengine and appenginevm build tags. Currently, appengine.go is being built even if user wants to use the package on managed VM that errors with no "appengine" package to import. --- google/appengine.go | 1 + google/appenginevm.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/google/appengine.go b/google/appengine.go index 31e89f5..941cbb3 100644 --- a/google/appengine.go +++ b/google/appengine.go @@ -3,6 +3,7 @@ // license that can be found in the LICENSE file. // +build appengine +// +build !appenginevm package google diff --git a/google/appenginevm.go b/google/appenginevm.go index d9d27ce..2682af8 100644 --- a/google/appenginevm.go +++ b/google/appenginevm.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build !appengine +// +build appenginevm package google