From 2672c48eb961dc6757a0d403765516ee0ddd0079 Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Fri, 20 Apr 2018 16:27:42 -0400 Subject: [PATCH] Revert "Make app version string available from inside app fixes #1035" --- buffalo/cmd/build/templates/main.go.tmpl | 3 --- handler.go | 3 --- 2 files changed, 6 deletions(-) diff --git a/buffalo/cmd/build/templates/main.go.tmpl b/buffalo/cmd/build/templates/main.go.tmpl index 587e7aba1..8964d1f0f 100644 --- a/buffalo/cmd/build/templates/main.go.tmpl +++ b/buffalo/cmd/build/templates/main.go.tmpl @@ -10,7 +10,6 @@ import ( _ "<%= opts.PackagePkg %>/a" _ "<%= opts.ActionsPkg %>" <%= if (opts.WithPop) { %> - "github.com/gobuffalo/envy" "github.com/gobuffalo/packr" "github.com/gobuffalo/pop" "<%= opts.ModelsPkg %>" @@ -24,8 +23,6 @@ var BuildVersion = "unknown" var BuildTime = "unknown" func main() { - envy.MustSet("BUILD_VERSION", BuildVersion) - envy.MustSet("BUILD_TIME", BuildTime) args := os.Args if len(args) == 1 { originalMain() diff --git a/handler.go b/handler.go index b18bdebd6..4ff9c5099 100644 --- a/handler.go +++ b/handler.go @@ -3,7 +3,6 @@ package buffalo import ( "net/http" - "github.com/gobuffalo/envy" "github.com/gobuffalo/x/httpx" gcontext "github.com/gorilla/context" "github.com/gorilla/mux" @@ -50,8 +49,6 @@ func (a *App) newContext(info RouteInfo, res http.ResponseWriter, req *http.Requ "current_path": req.URL.Path, "contentType": ct, "method": req.Method, - "BUILD_VERSION": envy.Get("BUILD_VERSION", "unknown"), - "BUILD_TIME": envy.Get("BUILD_TIME", "unknown"), } for _, route := range a.Routes() {