Skip to content

Commit

Permalink
add a go mod tidy before go mod vendor
Browse files Browse the repository at this point in the history
It’s generally a good practice to add a call to go mod tidy before running go mod vendor.
This ensures that your go.mod file is up-to-date and accurately reflects the dependencies
before running the tests.
Not calling go mod tidy caused an issue in one of the dependencies updates because go version
needed to be changed to 1.23 from 1.22
  • Loading branch information
nader-ziada authored and aramprice committed Oct 11, 2024
1 parent 13dde69 commit c65563b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/tasks/bbr-s3-config-validator-unit-test/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -euo pipefail

cd bosh-backup-and-restore/s3-config-validator/src
go mod tidy
go mod vendor
go run github.com/onsi/ginkgo/v2/ginkgo \
-r \
Expand All @@ -15,4 +16,3 @@ go run github.com/onsi/ginkgo/v2/ginkgo \
--progress \
--skip="unreadable file" \
internal

0 comments on commit c65563b

Please sign in to comment.