Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

govc: Move govc commands into cli pkg #3619

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

akutz
Copy link
Member

@akutz akutz commented Nov 8, 2024

Description

This patch refactors the govc command so all of its actual logic and commands are located in the root GoVmomi module under the cli package. The govc package may still be used to build, install, and test govc, but this change allows others to import the pieces of govc without being beholden to the govc module's Golang version.

All packages ./govc/* (except ./govc/test) have been relocated under the ./cli package.

Closes: NA

How Has This Been Tested?

  • make install
  • make test
  • make govc-test

Guidelines

Please read and follow the CONTRIBUTION guidelines of this project.

@akutz akutz requested a review from dougm November 8, 2024 18:18
@akutz akutz force-pushed the feature/app branch 2 times, most recently from d8d4ee9 to 3b6eb5c Compare November 8, 2024 21:27
@akutz akutz changed the title govc: Move govc commands into app pkg govc: Move govc commands into cli pkg Nov 8, 2024
Copy link
Member

@dougm dougm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @akutz

Also need to update: https://github.com/vmware/govmomi/blob/main/.goreleaser.yml#L20

Can we leave emacs in the govc directory? That'll avoid breaking this: https://github.com/melpa/melpa/blob/master/recipes/govc

Maybe keep examples/lib/ssh.sh under govc too. Or we could just remove it, the embedded examples we have now are more useful.

This patch refactors the `govc` command so all of its actual logic
and commands are located in the root GoVmomi module under the `cli`
package. The `govc` package may still be used to build, install,
and test `govc`, but this change allows others to import the pieces
of `govc` without being beholden to the `govc` module's Golang
version.

Signed-off-by: akutz <[email protected]>

BREAKING: All packages `./govc/*` (except `./govc/test`) have been
relocated under the `./cli` package.
@akutz
Copy link
Member Author

akutz commented Nov 11, 2024

Thanks @akutz

Also need to update: https://github.com/vmware/govmomi/blob/main/.goreleaser.yml#L20

Can we leave emacs in the govc directory? That'll avoid breaking this: https://github.com/melpa/melpa/blob/master/recipes/govc

Maybe keep examples/lib/ssh.sh under govc too. Or we could just remove it, the embedded examples we have now are more useful.

Done, done, and done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants