Skip to content

Commit

Permalink
Merge pull request #449 from atshaw43/IntegrationTest
Browse files Browse the repository at this point in the history
Changing sample-app go.mod redirection
  • Loading branch information
wangzlei authored Nov 14, 2023
2 parents e9627da + 69f2857 commit 0497955
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/IntegrationTesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion sample-apps/http-server/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0497955

Please sign in to comment.