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

[BUG] govc: error parsing API version "9.0.0.0.rc1": strconv.Atoi: parsing "rc1": invalid syntax #3643

Closed
yueclaireli opened this issue Dec 6, 2024 · 2 comments · Fixed by #3644

Comments

@yueclaireli
Copy link

Describe the bug
Latest 9.0 version string is not supported.

$ govc  datastore.ls
govc: error parsing API version "9.0.0.0.rc1": strconv.Atoi: parsing "rc1": invalid syntax

To Reproduce
Steps to reproduce the behavior:

  1. Deploy VC 9.0 latest build
  2. Run govc command to retrieve vc info

Expected behavior
govc command completes successfully

Affected version
0.46.2

Screenshots/Debug Output

$ govc  datastore.ls
govc: error parsing API version "9.0.0.0.rc1": strconv.Atoi: parsing "rc1": invalid syntax

Additional context
Add any other context about the problem here.

Copy link
Contributor

github-actions bot commented Dec 6, 2024

Howdy 🖐   yueclaireli ! Thank you for your interest in this project. We value your feedback and will respond soon.

If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.

@dougm
Copy link
Member

dougm commented Dec 6, 2024

Haven't seen such rc versioning before. You can disable this version check like so:

$ export GOVC_MIN_API_VERSION=-

dougm added a commit to dougm/govmomi that referenced this issue Dec 6, 2024
This check hasn't been useful, except maybe in the early days of govc.
It's only caused problems when dev/rc versioning changes in a way that breaks our parsing.
Simpler to just remove than to maintain it.

Fixes vmware#3643

Signed-off-by: Doug MacEachern <dougm@broadcom.com>
dougm added a commit to dougm/govmomi that referenced this issue Dec 6, 2024
This check hasn't been useful, except maybe in the early days of govc.
It's only caused problems when dev/rc versioning changes in a way that breaks our parsing.
Simpler to just remove than to maintain it.

Fixes vmware#3643

Signed-off-by: Doug MacEachern <dougm@broadcom.com>
dougm added a commit that referenced this issue Dec 12, 2024
This check hasn't been useful, except maybe in the early days of govc.
It's only caused problems when dev/rc versioning changes in a way that breaks our parsing.
Simpler to just remove than to maintain it.

Fixes #3643

Signed-off-by: Doug MacEachern <dougm@broadcom.com>
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 a pull request may close this issue.

2 participants