From b5f5db435cae985d01e9497fc3c5f31c8085c7be Mon Sep 17 00:00:00 2001 From: aaron-congo Date: Thu, 8 Feb 2024 12:51:55 -0800 Subject: [PATCH] Fix build errors --- .github/workflows/go.yml | 5 +---- go/Makefile | 2 ++ go/src/lib.rs | 4 +--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index adebaadc96..4739a27e70 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -67,9 +67,6 @@ jobs: working-directory: ./go run: make install-dependencies - - name: Setup upterm session - uses: lhotari/action-upterm@v1 - - name: Build client working-directory: ./go run: | @@ -82,7 +79,7 @@ jobs: - name: Run staticcheck linter working-directory: ./go - run: go staticcheck . + run: staticcheck . - name: Run unit tests working-directory: ./go diff --git a/go/Makefile b/go/Makefile index 3f267185d2..78c63cb1c3 100644 --- a/go/Makefile +++ b/go/Makefile @@ -13,6 +13,7 @@ build-glide-client: cargo build --release generate-protobuf: + mkdir -p protobuf protoc --proto_path=../glide-core/src/protobuf \ --go_opt=Mconnection_request.proto=github.com/aws/glide-for-redis/go/protobuf \ --go_opt=Mredis_request.proto=github.com/aws/glide-for-redis/go/protobuf \ @@ -26,4 +27,5 @@ lint: staticcheck ./... unit-test-report: + mkdir -p reports go test ./... -json | go-test-report -o reports/unit-test-report.html diff --git a/go/src/lib.rs b/go/src/lib.rs index d01fcaaa35..26b1dacc35 100644 --- a/go/src/lib.rs +++ b/go/src/lib.rs @@ -1,9 +1,7 @@ /** * Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */ -use std::{ - ffi::c_void -}; +use std::ffi::c_void; #[no_mangle] pub extern "C" fn create_connection() -> *const c_void {