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)