aarzilli / golua

Go bindings for Lua C API - in progress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

using the library from a vendor directory

ggeorgiev opened this issue · comments

Hi,

When I try to use this from a vendor directory I get:

vendor/github.com/aarzilli/golua/lua/golua.go:6:17: fatal error: lua.h: No such file or directory
#include <lua.h>
^
compilation terminated.

What I am doing wrong?

Thanks

Some vendor tool like to strip files they don't think they are used. Is github.com/aarzilli/golua/lua/lua/lua.h in your vendor directory? If it isn't complain to your vendor vendor.

This is the case. Thank you for pointing this out. I am trying to find an option to resolve this using govendor - a very popular and commonly used tool and I can't find.

I think the reason it to strip the directory is that there is no golang file in it. Is it possible for you to add a dummy.go file in there to workaround the issue.

govendor fetch github.com/aarzilli/golua/lua/lua doesn't work?

govendor v1.0.8 - sync, fetch, get - nothing works

@kardianos: what's the canonical solution to make govendor happy with a directory that only contains code for the C compiler?

@kardianos Sorry for the dumb question. Add it where?

Thanks.