devops - drone test failure build
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Mahdi Abu Yasmine 2023-12-15 23:49:37 +01:00
parent 945c092b61
commit 11906a9d02
2 changed files with 4 additions and 2 deletions

View File

@ -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}

View File

@ -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)