Skip to content
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

Can't build new version #35

Closed
cmosgh opened this issue Dec 18, 2017 · 6 comments
Closed

Can't build new version #35

cmosgh opened this issue Dec 18, 2017 · 6 comments

Comments

@cmosgh
Copy link

cmosgh commented Dec 18, 2017

Hi there Ryan,

I want to thank you again for this amazing tool.
I have an issue tho

Can't build the latest source. I need a standalone linux binary to be able to run it in a basic Docker image without anything else.

./monstache.go:575:10: unknown field 'Session' in struct literal of type monstachemap.MapperPluginInput
./monstache.go:598:13: output.Parent undefined (type *monstachemap.MapperPluginOutput has no field or method Parent)
./monstache.go:599:28: output.Parent undefined (type *monstachemap.MapperPluginOutput has no field or method Parent)
./monstache.go:601:13: output.Version undefined (type *monstachemap.MapperPluginOutput has no field or method Version)
./monstache.go:602:29: output.Version undefined (type *monstachemap.MapperPluginOutput has no field or method Version)
./monstache.go:604:13: output.VersionType undefined (type *monstachemap.MapperPluginOutput has no field or method VersionType)
./monstache.go:605:33: output.VersionType undefined (type *monstachemap.MapperPluginOutput has no field or method VersionType)
./monstache.go:607:13: output.TTL undefined (type *monstachemap.MapperPluginOutput has no field or method TTL)
./monstache.go:608:25: output.TTL undefined (type *monstachemap.MapperPluginOutput has no field or method TTL)
./monstache.go:610:13: output.Pipeline undefined (type *monstachemap.MapperPluginOutput has no field or method Pipeline)

Am I doing anything wrong?

Thanks!

@cmosgh
Copy link
Author

cmosgh commented Dec 18, 2017

Even when I try with
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
It just fails with the same error

@rwynn
Copy link
Owner

rwynn commented Dec 18, 2017

I usually do a go get github.com/rwynn/monstache then go into the src folder and run make all. This ensures folders are on go path.

@rwynn
Copy link
Owner

rwynn commented Dec 18, 2017

Make that go get -u ...

@rwynn
Copy link
Owner

rwynn commented Dec 18, 2017

So, I just tried this and was successful with an initially empty $GOPATH

cd $GOPATH
go get -u github.com/rwynn/monstache
cd src/github.com/rwynn/monstache
make all

Binaries then found in the $GOPATH/src/github.com/rwynn/monstache/build folder

@cmosgh
Copy link
Author

cmosgh commented Dec 18, 2017

Yes, you are correct.
Already built it and there is a Docker image from it and tested to work here

Thank you

@rwynn
Copy link
Owner

rwynn commented Dec 18, 2017

Great, glad you got it working and thanks for publishing that docker image. I'll have to check it out.

@rwynn rwynn closed this as completed Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants