-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed error when importing
http/https
.spkg
files in imports
se…
…ction.
- Loading branch information
Showing
7 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
specVersion: v0.1.0 | ||
package: | ||
name: test | ||
version: v0.0.0 | ||
|
||
imports: | ||
bare: "http://${SERVER_HOST}/spkg1-v0.0.0.spkg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env bash | ||
|
||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd ../../.. && pwd )" | ||
|
||
option="" | ||
|
||
main() { | ||
pushd "$ROOT" &> /dev/null | ||
|
||
while getopts "ho:" opt; do | ||
case $opt in | ||
h) usage && exit 0;; | ||
o) option="$OPTARG";; | ||
\?) usage_error "Invalid option: -$OPTARG";; | ||
esac | ||
done | ||
shift $((OPTIND-1)) | ||
|
||
set -e | ||
|
||
substreams pack manifest/testdata/spkg1/spkg1.yaml | ||
mv spkg1-v0.0.0.spkg manifest/testdata/spkg1/ | ||
} | ||
|
||
usage_error() { | ||
message="$1" | ||
exit_code="$2" | ||
|
||
echo "ERROR: $message" | ||
echo "" | ||
usage | ||
exit ${exit_code:-1} | ||
} | ||
|
||
usage() { | ||
echo "usage: build.sh <all>" | ||
echo "" | ||
echo "Generates the .spkg files from their manifest." | ||
echo "" | ||
echo "Options" | ||
echo " -h Display help about this script" | ||
} | ||
|
||
main "$@" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
specVersion: v0.1.0 | ||
package: | ||
name: spkg1 | ||
version: v0.0.0 |