Skip to content

Commit

Permalink
updated debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisoncramer committed Sep 15, 2024
1 parent ce71b0f commit 17893d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions debug/debug
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ DEBUG_DIR=$(dirname "$0")
SOURCE_DIR=$(dirname "$DEBUG_DIR")
cd "$SOURCE_DIR/cmd"

go clean -cache
go build -gcflags="all=-N -l" -o "${DEBUG_DIR}/bin" && cp "${DEBUG_DIR}/bin" "${TARGET}/bin"

# # Add the token to the debug json
# Add the token to the debug json
JSON_WITH_TOKEN=$(cat "$DEBUG_DIR/debug.json" | jq --arg token $GITLAB_TOKEN '.auth_token = $token')

# # Run the binary
# Run the binary
cd $TARGET
DEBUG=true ./bin "$JSON_WITH_TOKEN"

0 comments on commit 17893d2

Please sign in to comment.