Code Monkey home page Code Monkey logo

Comments (10)

bradrydzewski avatar bradrydzewski commented on July 19, 2024

I'm running the latest version and not seeing any issues. I tried locally and a new server. Would you mind helping debug? Which template is failing to parse? do you have the latest revision (2867818)?

from gitness.

chilijung avatar chilijung commented on July 19, 2024

Hi, @bradrydzewski. I'm on revision 2867818679. make test also run to the same error.

from gitness.

bradrydzewski avatar bradrydzewski commented on July 19, 2024

can you add some println statements and see which template is causing the panic?
https://github.com/drone/drone/blob/master/pkg/template/template.go#L31

I'm not getting the error locally and it passed on our build server

from gitness.

chilijung avatar chilijung commented on July 19, 2024

OK I'll take a look :)

from gitness.

fudanchii avatar fudanchii commented on July 19, 2024

@chilijung Have you checked your Go version? You might want to upgrade, there's a couple of changes in Go 1.2 related to html/template package. reference: http://golang.org/doc/go1.2#text_template

from gitness.

chilijung avatar chilijung commented on July 19, 2024

Actually I've find the exact template causing the problem.

template repo_dashboard.html died in line https://github.com/drone/drone/blob/master/pkg/template/template.go#L112

After update to Go 1.2 as @fudanchii said.. now can't even build the repo... I get these errors

➜  drone git:(debug) ✗ make
cd cmd/droned   && rice embed
cd pkg/template && rice embed
cd cmd/drone  && go build -o ../../bin/drone
# github.com/drone/drone/pkg/template
../../pkg/template/emails.rice-box.go:4: import /home/howard/go/pkg/linux_386/github.com/GeertJohan/go.rice/embedded.a: object is [linux 386 go1.1 X:none] expected [linux 386 go1.2 X:none]
# github.com/drone/drone/pkg/model
../../pkg/model/user.go:9: import /home/howard/go/pkg/linux_386/code.google.com/p/go.crypto/bcrypt.a: object is [linux 386 go1.1 X:none] expected [linux 386 go1.2 X:none]
make: *** [build] Error 2

from gitness.

fudanchii avatar fudanchii commented on July 19, 2024

@chilijung You need to recompile the libraries, this error:
object is [linux 386 go1.1 X:none] expected [linux 386 go1.2 X:none]
indicates you previously compile those with go1.1 and it's incompatible with go1.2
you could try run go clean first, and then re-run make deps.

from gitness.

chilijung avatar chilijung commented on July 19, 2024

@fudanchii got the same errors after rebuild. Any ideas?

from gitness.

fudanchii avatar fudanchii commented on July 19, 2024

@chilijung Hmmm, pretty sure you mixed up go1.2 with your previous go installation. You should make sure to clean up your previous libraries installation in your GOPATH go clean -i, and then make sure your go1.2 is actually the one being called when you run make deps. Also check your GOROOT actually points to go1.2 installation root path.

from gitness.

chilijung avatar chilijung commented on July 19, 2024

yes!!!! I've successfully build drone thanks @fudanchii . I found out that I have to delete all the pkg/linux_386 folders and let go rebuild all the deps. Thanks!

from gitness.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.