diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..1112c89a --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,10 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +tasks: + - init: python -m pip install --upgrade -r requirements-test.txt && go get && go build ./... && go test ./... + + diff --git a/sign/sign.go b/sign/sign.go index e31b5465..aa6d958c 100644 --- a/sign/sign.go +++ b/sign/sign.go @@ -69,7 +69,7 @@ func Marshal(v interface{}, keys ...keys.Signer) (*data.Signed, error) { if err != nil { return nil, err } - s := &data.Signed{Signed: b} + s := &data.Signed{Signed: b, Signatures: make([]data.Signature, 0)} for _, k := range keys { if err := Sign(s, k); err != nil { return nil, err