Comments (8)
Not sure. Let me check.
from http2preload.
@vorcigernix I don't see anything in the github.com/google/http2preload
package that would prevent building your app.
What do you mean by "almost helloworld" and what is error message. Also, why do you think it is related to http2preload package?
from http2preload.
It worked before I added http2preload. Might be something else though. Here is the code:
package hello
import (
"html/template"
"net/http"
"github.com/google/http2preload"
)
func init() {
m, err := http2preload.ReadManifest("push_manifest.json")
http.Handle("/", m.Handler(handleRoot))
if err != nil {
panic(err)
}
}
func handleRoot(w http.ResponseWriter, r *http.Request) {
tmpl := template.Must(template.ParseGlob("templates/index.html"))
if err := tmpl.Execute(w, nil); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
}
from http2preload.
So, what is the actual build failure error message?
from http2preload.
ERROR 2017-01-06 12:43:49,409 go_runtime.py:181] Failed to build Go application: (Executed command: /Users/adamsobotka/Downloads/go_appengine/goroot/bin/go-app-builder -app_base /Users/adamsobotka/myblog -arch 6 -dynamic -goroot /Users/adamsobotka/Downloads/go_appengine/goroot -gopath /Users/adamsobotka/Downloads/go_appengine/goroot -nobuild_files ^^$ -incremental_rebuild -unsafe -binary_name _go_app -extra_imports appengine_internal/init -work_dir /var/folders/3v/tmfr7mws3pscthdg02w4m5nm0000gn/T/tmp4CMjldappengine-go-bin -gcflags -I,/Users/adamsobotka/Downloads/go_appengine/goroot/pkg/darwin_amd64_appengine -ldflags -L,/Users/adamsobotka/Downloads/go_appengine/goroot/pkg/darwin_amd64_appengine hello.go)
/var/folders/3v/tmfr7mws3pscthdg02w4m5nm0000gn/T/tmp4CMjldappengine-go-bin/hello.go:7: import /Users/adamsobotka/Downloads/go_appengine/goroot/pkg/darwin_amd64/github.com/google/http2preload.a: object is [darwin amd64 go1.7.1 X:framepointer] expected [darwin amd64 go1.6.3 (appengine-1.9.48) X:none]
2017/01/06 13:43:49 go-app-builder: build timing: 0×skip (0 total), 2×compile (240ms total), 0×link (0 total)
2017/01/06 13:43:49 go-app-builder: failed running compile: exit status 2
from http2preload.
Your issue is with the local setup. The problem is here: /Users/adamsobotka/Downloads/go_appengine/goroot/pkg/darwin_amd64/github.com/google/http2preload.a: object is [darwin amd64 go1.7.1 X:framepointer] expected [darwin amd64 go1.6.3 (appengine-1.9.48) X:none]
The package was compiled with Go1.7 but App Engine is obviously using Go1.6. Try deleting /Users/adamsobotka/Downloads/go_appengine/goroot/pkg/darwin_amd64/github.com/google/http2preload.a
.
from http2preload.
Closing as this is a non-package issue.
from http2preload.
Yeah, thanks, works now.
from http2preload.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http2preload.