Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing sample-app go.mod redirection #449

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading