diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d89b37f..42231e19 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: run: | go get ./... - name: Build - run: GOOS=linux go build -v -o fq-connector-go ./app + run: GOOS=linux go build -v -ldflags="$(sh ./get_ldflags.sh)" -o fq-connector-go ./app - name: Test run: go test -v ./app/... - name: Build and push Docker image diff --git a/generate.py b/generate.py index a714da94..375a2e63 100755 --- a/generate.py +++ b/generate.py @@ -186,7 +186,7 @@ def parse_args(): parser = argparse.ArgumentParser( prog="generate", description=""" - Script for Go Protobuf API generation. + Script for Go Protobuf API generation. It takes protofiles from YDB repository and generates Go code in fq-connector-go repository. """, ) @@ -231,7 +231,7 @@ def main(): protobuf_includes = Path(args.protobuf_dir) if not protobuf_includes.exists(): - raise ValueError(f"path {connector_github_root} does not exist") + raise ValueError(f"path {protobuf_includes} does not exist") ydb_source_files = [ YDBProtoFile(ydb_github_root.joinpath(param[0]), param[1])