Path: blob/main/components/image-builder-api/generate.sh
2492 views
#!/bin/bash12if [ -n "$DEBUG" ]; then3set -x4fi56set -o errexit7set -o nounset8set -o pipefail910ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)/../../11COMPONENTS_DIR=$ROOT_DIR/components1213# include protoc bash functions14# shellcheck disable=SC1090,SC109115source "$ROOT_DIR"/scripts/protoc-generator.sh1617install_dependencies18go_protoc "$COMPONENTS_DIR"19typescript_protoc "$COMPONENTS_DIR"2021# cd go22pushd go2324mockgen \25-package mock \26github.com/gitpod-io/gitpod/image-builder/api ImageBuilderClient,ImageBuilder_BuildClient,ImageBuilder_LogsClient,ImageBuilderServer,ImageBuilder_BuildServer,ImageBuilder_LogsServer > mock/mock.go2728# return to previous directory29popd3031pushd typescript/src32node "$COMPONENTS_DIR"/content-service-api/typescript/patch-grpc-js.ts33popd3435update_license363738