Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bundle: Add helper function to get bundle name with extension
The previous commit introduced a warning when crc setup is used with its -b option, and when the bundle version does not correspond to the one hardcoded in crc's Makefile. However, if the bundle is unpacked and one uses `crc setup -b ~/.crc/cache/crc_libvirt_4.11.1_amd64`, the warning will also be printed because crc_libvirt_4.11.1_amd64 (without extention) is different from the expected crc_libvirt_4.11.1_amd64.crcbundle. While it's questionable if -b should accept a path or not, this has been working until now. This commit introduces a GetBundleNameWithExtension() helper which will be used to silence incorrect warning. ``` $ crc setup -b ~/.crc/cache/crc_libvirt_4.11.1_amd64 WARN Using crc_libvirt_4.11.1_amd64 bundle, but crc_libvirt_4.11.1_amd64.crcbundle is expected for this release ```
- Loading branch information