-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
template.go:115: undefined: template.MustParseFile #1
Comments
Oh interesting. I am on the release version. I'll look into this. Edit: By the way, thank you for your interest in gonew and for reporting this :) |
That was more work than I expected. Gofix didn't help me out at all :( But things should compile now. The template package just went though a pretty big overhaul it seems. It will take me a day or to finish reading the documentation and polish up the new versions of the templates. But things are totally usable now. This issue is closed. |
Am I using right command ?
[tjyang@t-fedora15-64 gonew]$ make
[go@t-fedora15-64 gonew]$ make |
Compilation issue fixed by reverse the change here, aa62887#template.go |
It looks like you're on the release version of Go. If so, you should try using goinstall.
Otherwise, it is a good deal more intensive. You should pull the
Then you have to set the "templates" path in the ~/.gonewrc file to point to your cloned repository's templates. I just wrote some instructions up for people on the weekly branch https://github.com/bmatsuo/gonew/tree/weekly Goinstall is by far the easiest solution for people on the release branch. |
oh, i think i misunderstood you... You were on the weekly branch supposedly. |
On Fri, Aug 26, 2011 at 3:53 PM, bmatsuo
tj
T.J. Yang |
However, I don't get these errors on the weekly branch.
I'm really not trying to be patronizing. But are you the weekly version was compiled? Just because the repository is checked out to the weekly branch, doesn't necessarily mean your executables are up to date. |
On Fri, Aug 26, 2011 at 4:00 PM, bmatsuo
You are correct, my 6g binary wasn't in sync with 2011-08-17 src tree. [tjyang@t-fedora15-64 gonew]$ hg id
T.J. Yang |
Ok, great! Glad to hear its resolved :) |
[tjyang@t-fedora15-64 src]$ goinstall -v github.com/bmatsuo/gonew
goinstall: path/filepath: skipping standard library I am not familiar with hg, looks like you need to make the changes tj
T.J. Yang |
Yea, I was trying to set it up so people using the release branch could Goinstall the program, as well as cater to people on the weekly branch. Currently, its impossible to set up a repository to Goinstall on both the release and weekly branches (to the best of my knowledge). It's a really messed up situation that the Go developers need to fix. They recommend the release branch, but so many people are actually on the weekly branch. And the number of API differences between the two makes about half of the available go libraries uninstallable on what ever branch the user wants to run on. And it gets worse the longer the release branch has been out, and subsequent weekly releases pile up. If Goinstall actually knew what branch the user is on, it could handle this weekly/release branch situation that Go has now. But it doesn't know, or more appropriately, doesn't check what branch your on and will always check out the "release", or the "master" branch if there is no "release". It's messed up. /end rant As I said, for now I'm mainly supporting the release branch of Go. So I don't intend on changing the release branch situation. But, I do want people on the weekly branch to be able to install (as I said their are a lot of them). So I wrote some instructions in the README.md file on the weekly branch https://github.com/bmatsuo/gonew/tree/weekly I'm going to merge that into the master branch soon. But again, the weekly/master branches won't install with Goinstall because it is so dumb =/ |
So I've found out how
|
Besides this, It also have support git repository project on tj On Fri, Sep 9, 2011 at 3:04 AM, Bryan Matsuo
T.J. Yang |
Oh, I hadn't noticed that GoogleCode now allows Git repos http://google-opensource.blogspot.com/2011/07/announcing-git-support-for-google-code.html It may not work right away. I'll have to do some investigation of my own. Thanks for pointing this out, @tjyang |
Hi, I am using latest weekly go release and like to try out gonew but it failed the compilation.
[go@t-fedora15-64 gonew]$ pwd
/home/go/go/src/pkg/github.com/bmatsuo/gonew
[go@t-fedora15-64 gonew]$ make
6g -o go.6 config.go template.go repository.go hosts.go license.go file.go project.go gonew_main.go
template.go:115: undefined: template.MustParseFile
template.go:132: undefined: template.MustParseFile
make: *** [go.6] Error 1
[go@t-fedora15-64 gonew]$
[go@t-fedora15-64 gonew]$ hg id
6eb2b9dbe489 weekly/weekly.2011-08-17
[go@t-fedora15-64 gonew]$
The text was updated successfully, but these errors were encountered: