Skip to content

Commit 2ff442f

Browse files
committed
chore(go-dev): upgrading go-dev container to v1.25.0
Signed-off-by: Cryptophobia <aouzounov@gmail.com>
1 parent 9bdabc8 commit 2ff442f

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include versioning.mk
44

55
# dockerized development environment variables
66
REPO_PATH := github.com/teamhephy/${SHORT_NAME}
7-
DEV_ENV_IMAGE := quay.io/deis/go-dev:v0.22.0
7+
DEV_ENV_IMAGE := quay.io/deis/go-dev:v1.25.0
88
DEV_ENV_WORK_DIR := /go/src/${REPO_PATH}
99
DEV_ENV_PREFIX := docker run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR}
1010
DEV_ENV_CMD := ${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE}

pkg/git/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func createRepo(repoPath string) (bool, error) {
150150

151151
return true, nil
152152
} else if err == nil {
153-
return false, errors.New("Expected directory, found file.")
153+
return false, errors.New("Expected directory, found file")
154154
}
155155
return false, err
156156
}

pkg/gitreceive/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ func build(
298298
for _, containerStatus := range buildPod.Status.ContainerStatuses {
299299
state := containerStatus.State.Terminated
300300
if state.ExitCode != 0 {
301-
return fmt.Errorf("Build pod exited with code %d, stopping build.", state.ExitCode)
301+
return fmt.Errorf("Build pod exited with code %d, stopping build", state.ExitCode)
302302
}
303303
}
304304
log.Debug("Done")

pkg/sshd/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const (
3030
)
3131

3232
var errBuildAppPerm = errors.New("user has no permission to build the app")
33-
var errDirPerm = errors.New("Cannot change directory in file name.")
34-
var errDirCreatePerm = errors.New("Empty repo name.")
33+
var errDirPerm = errors.New("Cannot change directory in file name")
34+
var errDirCreatePerm = errors.New("Empty repo name")
3535

3636
// AuthKey authenticates based on a public key.
3737
func AuthKey(key ssh.PublicKey, cnf *Config) (*ssh.Permissions, error) {

0 commit comments

Comments
 (0)