From 11906a9d02dcb5ab4a4c7e506bee74ccba2fe348 Mon Sep 17 00:00:00 2001 From: mahdi Date: Fri, 15 Dec 2023 23:49:37 +0100 Subject: [PATCH] devops - drone test failure build --- .drone.yml | 4 +++- util/util.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index e4578c7..42cffa1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,7 +18,7 @@ steps: - name: deps path: /go commands: - - go build ./... + - go build -v -race -a ./... - name: deploy image: alpine @@ -44,6 +44,7 @@ steps: from_secret: ZULIP_TOKEN commands: - apk add --no-cache curl + - printenv - export ZULIP_STATUS=":prohibited:" - export ZULIP_MESSAGE=$${DRONE_COMMIT_MESSAGE:-2} - export SHORT_COMMIT=$${DRONE_COMMIT:0:7} @@ -66,6 +67,7 @@ steps: from_secret: ZULIP_TOKEN commands: - apk add --no-cache curl + - printenv - export ZULIP_STATUS=":check:" - export ZULIP_MESSAGE=$${DRONE_COMMIT_MESSAGE:-2} - export SHORT_COMMIT=$${DRONE_COMMIT:0:7} diff --git a/util/util.go b/util/util.go index 5f53ea7..e09b6f3 100644 --- a/util/util.go +++ b/util/util.go @@ -74,7 +74,7 @@ func GetBytesAsHex(key []byte) []byte { hex.Encode(dst, key) return dst } - +func func GetBytesFromHex(key []byte) []byte { dst := make([]byte, hex.DecodedLen(len(key))) n, err := hex.Decode(dst, key)