From 457e539d9504d1d822af625ce3ec5ecdd78884b9 Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Tue, 14 Nov 2023 14:33:23 -0800 Subject: [PATCH] Fixing relative path for Integration Test --- .github/workflows/IntegrationTesting.yml | 3 +++ sample-apps/http-server/go.mod | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/IntegrationTesting.yml b/.github/workflows/IntegrationTesting.yml index f916a033..8c88bfa1 100644 --- a/.github/workflows/IntegrationTesting.yml +++ b/.github/workflows/IntegrationTesting.yml @@ -20,6 +20,9 @@ jobs: - name: Copy X-Ray SDK to deployment package with Sample App run: rsync -r * sample-apps/http-server/aws-xray-sdk-go --exclude sample-apps/ + - name: The application.go file must be at the working directory level in EB Go. We need to change the redirection to the folder we copied in the previous step. + run: sed -i '' 's|replace github.com/aws/aws-xray-sdk-go => ../../|replace github.com/aws/aws-xray-sdk-go => ./aws-xray-sdk-go|g' go.mod + - name: Zip up the deployment package run: zip -r deploy.zip . -x '*.git*' working-directory: ./sample-apps/http-server diff --git a/sample-apps/http-server/go.mod b/sample-apps/http-server/go.mod index 7fb89227..420be3d6 100644 --- a/sample-apps/http-server/go.mod +++ b/sample-apps/http-server/go.mod @@ -1,7 +1,6 @@ module application.go -replace github.com/aws/aws-xray-sdk-go => ./aws-xray-sdk-go - +replace github.com/aws/aws-xray-sdk-go => ../../ require ( github.com/aws/aws-sdk-go v1.47.9 github.com/aws/aws-xray-sdk-go v1.8.2