diff --git a/.github/workflows/IntegrationTesting.yml b/.github/workflows/IntegrationTesting.yml index f916a033..308e71d8 100644 --- a/.github/workflows/IntegrationTesting.yml +++ b/.github/workflows/IntegrationTesting.yml @@ -20,11 +20,14 @@ 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 + working-directory: ./sample-apps/http-server + - name: Zip up the deployment package run: zip -r deploy.zip . -x '*.git*' working-directory: ./sample-apps/http-server - - name: Upload WebApp with X-Ray SDK build artifact uses: actions/upload-artifact@v2 with: diff --git a/sample-apps/http-server/go.mod b/sample-apps/http-server/go.mod index 7fb89227..6bb88320 100644 --- a/sample-apps/http-server/go.mod +++ b/sample-apps/http-server/go.mod @@ -1,6 +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