This PR adds three features to the entrypoint.sh script.
It allows env={IMPORT="root/repo"} for cases where a repository's import name isn't the same as its repo name on GitHub, as is often the case when you fork a golang project.
It uses ln -s instead of cp -R, to save time and space when building large repos.
It provides make (if there's a Makefile) or go build && go test as default commands. In many cases the user won't have to specify args.
This PR adds three features to the
entrypoint.sh
script.env={IMPORT="root/repo"}
for cases where a repository'simport
name isn't the same as its repo name on GitHub, as is often the case when you fork a golang project.ln -s
instead ofcp -R
, to save time and space when building large repos.make
(if there's a Makefile) orgo build && go test
as default commands. In many cases the user won't have to specifyargs
.So the simplest usage is now:
I've made each of the three additions its own commit(s), in case you want to cherry-pick and choose.