Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Revert "Make app version string available from inside app fixes #1035" (
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates authored Apr 20, 2018
1 parent 3df6fef commit ee6dd4d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions buffalo/cmd/build/templates/main.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>"
Expand All @@ -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()
Expand Down
3 changes: 0 additions & 3 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit ee6dd4d

Please sign in to comment.