Skip to content

Commit

Permalink
Fix mockgen script
Browse files Browse the repository at this point in the history
This change fixes mockgen by changing the package name to the reflect
the module name github.com/cloudfoundry/bosh-cli/v7. Presumably, the
module name changed at some point, but the mockgen script wasn't updated
to reflect it. So it would try to add github.com/cloudfoundry/bosh-cli
as a go mod dependency and complain vendoring is inconsistent (you can't
vendor bosh-cli in its own repo).

Mocks were regenerated using the updated script. It updates mocks in
installation package to account for changes made to support multiple CPI
releases in an installation manifest.

Signed-off-by: Kenneth Lakin <[email protected]>
  • Loading branch information
rajathagasthya authored and Ops Manager committed Sep 12, 2024
1 parent 1147d8c commit c635ff5
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 53 deletions.
91 changes: 46 additions & 45 deletions agentclient/mocks/mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/mockgen
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
bin=$(dirname $0)

rootPackage=github.com/cloudfoundry/bosh-cli
rootPackage=github.com/cloudfoundry/bosh-cli/v7

srcFiles=(
config/LegacyDeploymentStateMigrator
Expand Down
14 changes: 7 additions & 7 deletions installation/mocks/mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c635ff5

Please sign in to comment.