Skip to content

Commit

Permalink
use go mod edit
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Sep 3, 2024
1 parent 7936e78 commit 0470af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-import.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
cd $(mktemp -d)
echo "$GO_MAIN" > main.go
go mod init github.com/zarf-dev/test-import
go get github.com/${{ github.event.pull_request.head.repo.full_name }}@$COMMIT_SHA
go mod edit -replace github.com/zarf-dev/zarf=github.com/${{ github.event.pull_request.head.repo.full_name }}@${COMMIT_SHA:0:12}
go mod tidy
cat go.mod | grep -q ${COMMIT_SHA:0:12}
go run main.go
Expand Down

0 comments on commit 0470af8

Please sign in to comment.