Skip to content

Commit

Permalink
use go-depsync package (#434)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chacin <[email protected]>
  • Loading branch information
pablochacin authored Nov 18, 2024
1 parent 6dbb64a commit c05d0f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 110 deletions.
1 change: 0 additions & 1 deletion .github/workflows/sync-core-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
go-version: "1.21"
- name: Sync dependencies
run: |
git checkout -b "$BRANCH_NAME"
./hack/depsync.sh
if [[ -z "$(git status --porcelain --untracked-files=no)" ]]; then
Expand Down
6 changes: 5 additions & 1 deletion hack/depsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

set -eo pipefail

go install github.com/grafana/go-depsync@latest

tmpdir=$(mktemp -d)

gogetcmd=$(go run ./hack/depsync 2>"$tmpdir/deps.log")


gogetcmd=$(go-depsync --parent go.k6.io/k6 2>"$tmpdir/deps.log")

if [[ -z $gogetcmd ]]; then
echo "Nothing to do."
Expand Down
108 changes: 0 additions & 108 deletions hack/depsync/depsync.go

This file was deleted.

0 comments on commit c05d0f5

Please sign in to comment.