fix: version checks#262
fix: version checks#262lbajolet-hashicorp merged 1 commit intovmware:mainfrom tenthirtyam:fix/player-version-checks
Conversation
lbajolet-hashicorp
left a comment
There was a problem hiding this comment.
LGTM, thanks @tenthirtyam !
lbajolet-hashicorp
left a comment
There was a problem hiding this comment.
Hey @tenthirtyam,
Overall this looks good to me, thanks for the reroll with go-version! I left a few last comments regarding versions and error handling, I think there's some small improvements we can make there, but besides that, this looks good to me.
Pre-approving to not block later, I'll let you address my last comments and I'll do a final round of review before merging this.
- Updates the version checks. - Updates log messages based on INFO or WARN context. - Moves constants to the `driver.go` for easier maintenance. Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
|
@lbajolet-hashicorp - ready to go! Postive Tests: Min of 13.5.0; running 13.6.1. 2024/12/03 20:51:37 packer-plugin-vmware_v1.1.1-dev_x5.0_darwin_arm64 plugin: 2024/12/03 20:51:37 [INFO] Checking VMware Fusion version...
2024/12/03 20:51:37 packer-plugin-vmware_v1.1.1-dev_x5.0_darwin_arm64 plugin: 2024/12/03 20:51:37 [INFO] VMware Fusion: 13.6.1
2024/12/03 20:51:37 packer-plugin-vmware_v1.1.1-dev_x5.0_darwin_arm64 plugin: 2024/12/03 20:51:37 [INFO] Checking VMware Fusion paths...
2024/12/03 20:51:37 packer-plugin-vmware_v1.1.1-dev_x5.0_darwin_arm64 plugin: 2024/12/03 20:51:37 [INFO] - VMware Fusion.app found at: /Applications/VMware Fusion.app
2024/12/03 20:51:37 packer-plugin-vmware_v1.1.1-dev_x5.0_darwin_arm64 plugin: 2024/12/03 20:51:37 [INFO] - vmware-vmx found at: /Applications/VMware Fusion.app/Contents/Library/vmware-vmx
2024/12/03 20:51:37 packer-plugin-vmware_v1.1.1-dev_x5.0_darwin_arm64 plugin: 2024/12/03 20:51:37 [INFO] - vmrun found at: /Applications/VMware Fusion.app/Contents/Library/vmrun
2024/12/03 20:51:37 packer-plugin-vmware_v1.1.1-dev_x5.0_darwin_arm64 plugin: 2024/12/03 20:51:37 [INFO] - vmware-vdiskmanager found at: /Applications/VMware Fusion.app/Contents/Library/vmware-vdiskmanager
2024/12/03 20:51:37 packer-plugin-vmware_v1.1.1-dev_x5.0_darwin_arm64 plugin: 2024/12/03 20:51:37 Using driver *common.FusionDriver, Success: trueNegative Test: Min of 13.7.0 set as const for testing; running 13.6.1. packer build --force -var-file=photon-4.0-R2.pkrvars.hcl .
vmware-iso.vagrant-vmw: output will be in this color.
Build 'vmware-iso.vagrant-vmw' errored after 74 milliseconds 855 microseconds: failed creating driver : driver initialization failed. fix at least one driver to continue:
* [ERROR] Requires VMware Fusion 13.7.0 or later, 13.6.1 installed |
lbajolet-hashicorp
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the rerolls @tenthirtyam
Merging now
|
I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Summary
hashicorp/go-version.INFOorWARNcontext.driver.gofor easier maintenance.Tests
Postive Tests: Min of 13.5.0; running 13.6.1.
Negative Test: Min of 13.7.0 set as const; running 13.6.1.