-
Notifications
You must be signed in to change notification settings - Fork 54
Added simple build script #141
base: master
Are you sure you want to change the base?
Conversation
I don't really get the purpose of it. Why don't you simply use |
go build doesn't work from the scratch. You always have to configure lots of parameters, prepare environment. This script will work even when you will try to build this project in pure empty docker container with go: $ docker run -ti --rm -v ${PWD}:/mnt -u $(id -u) golang /mnt/scripts/build -os=linux -arch=amd64 Can you do this without this script? If yes and I really did miss something, please provide the solution in README.md file. |
Actually,
|
I don't want to argue with you, but I prefer to have possibility to easy compile modified sources, within current directory. In addition I have a lot of go sources and I don't want to install dependencies system-wide. This script allows to keep everything in each separate directory. |
Here is the list of projects with similar scripts: |
It's perfectly fine arguing :) I'm just trying to figure out why it seems complicated to build the binary, what need it addresses. I really understand it's a good thing to provide a build script for projects where the build process is not trivial, or that were already popular pre-go1.6 (due to the compiler toolchain still being written in C instead of Go or dependency vendoring not yet landed). But it doesn't seem to be the case there... Except if I've missed something. What system-wide dependency are you refering to? |
When you run |
I was not able to find a script or makefile which will just build the binary. Thus here is it...