-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🪟🔧 Connector builder: Do not rely on local cdk anymore (#22391)
* do not rely on local cdk anymore * cache versioned schemas * fix used version * review comments
- Loading branch information
Joe Reuter
authored
Feb 7, 2023
1 parent
13aac77
commit aace7ae
Showing
4 changed files
with
40 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This script makes sure the json schema for the low code connector manifest is provided for orval to build the Typescript types | ||
# used by the connector builder UI. It either downloads a released version from PyPI or copies it over from a specified file path. | ||
|
||
set -e | ||
mkdir -p build | ||
|
||
# Make sure this is aligned with the CDK version of the connector builder server | ||
DEFAULT_CDK_VERSION="0.25.0" | ||
|
||
if [ -z "$CDK_VERSION" ] | ||
then | ||
CDK_VERSION=$DEFAULT_CDK_VERSION | ||
fi | ||
|
||
|
||
if [ -z "$CDK_MANIFEST_PATH" ] | ||
then | ||
TARGET_FILE="build/declarative_component_schema-${CDK_VERSION}.yaml" | ||
if [ ! -f "$TARGET_FILE" ]; then | ||
echo "Downloading CDK manifest schema $CDK_VERSION from pypi" | ||
curl -L https://pypi.python.org/packages/source/a/airbyte-cdk/airbyte-cdk-${CDK_VERSION}.tar.gz | tar -xzO airbyte-cdk-${CDK_VERSION}/airbyte_cdk/sources/declarative/declarative_component_schema.yaml > ${TARGET_FILE} | ||
else | ||
echo "Found cached CDK manifest schema $CDK_VERSION" | ||
fi | ||
cp ${TARGET_FILE} build/declarative_component_schema.yaml | ||
else | ||
echo "Copying local CDK manifest version from $CDK_MANIFEST_PATH" | ||
cp ${CDK_MANIFEST_PATH} build/declarative_component_schema.yaml | ||
fi |
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