Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
chore: invalid character in stake holder file name
Browse files Browse the repository at this point in the history
Getting malformed file path error while tagging

https://sum.golang.org/lookup/github.com/trustbloc/[email protected]

not found: create zip: malformed file path
"test/bdd/fixtures/agent-wasm/config-data/stakeholder.one:8088.json":
invalid char ':'

Signed-off-by: sudesh.shetty <[email protected]>
  • Loading branch information
sudeshrshetty committed May 6, 2020
1 parent a82dc74 commit 6b958a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/generate_test_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ function convert_file_linux() {
# then embed in a dummy jws and write to the config folder
# $1: file name
echo "{\"payload\":\"$(cat $1 | base64 -w 0 | sed 's/+/-/g; s/\//_/g; s/=//g')\",\"signatures\":[{\"header\":{\"kid\":\"\"},\"signature\":\"\"}]}" > ../config/$1
find ../config -depth -name '*.*' -execdir bash -c 'mv -- "$1" "${1/_/:}"' bash {} \;
}

function convert_file_osx() {
# base64url encode payload: base64 -w 0 | sed 's/+/-/g; s/\//_/g'
# then embed in a dummy jws and write to the config folder
# $1: file name
echo "{\"payload\":\"$(cat $1 | base64 | sed 's/+/-/g; s/\//_/g; s/=//g')\",\"signatures\":[{\"header\":{\"kid\":\"\"},\"signature\":\"\"}]}" > ../config/$1
find ../config -depth -name '*.*' -execdir bash -c 'mv -- "$1" "${1/_/:}"' bash {} \;
}

pwd=`pwd`
Expand Down

0 comments on commit 6b958a3

Please sign in to comment.