Commit 51754434 authored by Christian Jürges's avatar Christian Jürges
Browse files

go get all needed packages on build

parent 1e4b07e6
Pipeline #420 failed with stages
in 11 seconds
......@@ -15,6 +15,7 @@ before_script:
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
- go get ./..
stages:
- test
......
......@@ -15,6 +15,7 @@ var log = logging.MustGetLogger("createsitemap")
var logFormat = logging.MustStringFormatter(
`%{color}%{time:15:04:05.000} %{shortfunc} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}`,
)
/* var logFormat = logging.MustStringFormatter(
`%{time:15:04:05.000} ▶ %{shortfunc} %{level:.4s} %{id:03x} %{message}`,
) */
......
......@@ -36,7 +36,7 @@ func (c *command) Run(arg ...string) ([][]string, error) {
err := cmd.Run()
var waitStatus syscall.WaitStatus
if err != nil {
var exitStatus int;
var exitStatus int
if exitError, ok := err.(*exec.ExitError); ok {
waitStatus = exitError.Sys().(syscall.WaitStatus)
exitStatus = waitStatus.ExitStatus()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment