solo-io / unik

The Unikernel & MicroVM Compilation and Deployment Platform
Apache License 2.0
2.71k stars 191 forks source link

Go build arguments #122

Open cthackers opened 7 years ago

cthackers commented 7 years ago

Hi, I've looked in the docs but couldn't find a way to pass build arguments to the go compiler. I have a project that requires both -tags and -ldflags arguments. Is there a way to do that ? If not, can you make that possible ?

Thanks

ilackarms commented 7 years ago

Right now it's not possible but if you want to check https://github.com/emc-advanced-dev/unik/blob/master/containers/compilers/rump/go/Dockerfile.hw where you will see the go build command (in the Dockerfile CMD instruction). You'll have to modify that (or the xen Dockerfile if you are building for xen or aws target) and rebuild the cobtained image with make compilers-rump-go-hw (or -xen)