packer/command
Lucas Bajolet d7f299886d command: scrub metadata from version at install
When installing plugins with the `packer plugins install --path'
command, the metadata is now scrubbed from the file installed locally.

This is as a protection against collisions in the versions, as metadata
is meaningless for version comparison, so if two versions of the same
plugin are installed, the precedence order between them is undefined.

Therefore to avoid such collisions, we remove the metadata from the file
name, that way if two successive versions of a plugin include metadata
in the version, they won't coexist, and the last installed will be the
only installed version locally.
2024-03-26 10:08:28 -04:00
..
enumflag [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
flag-kv [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
flag-slice [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
test-fixtures fmt: print parse errors on error 2024-03-07 14:41:19 -05:00
build.go Add ignore-prerelease-flag to command help text 2024-03-12 13:19:21 -04:00
build_cancellation_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
build_cleanup_script_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
build_parallel_test.go chore: unnecessary use of fmt.Sprintf 2023-09-21 09:38:23 -04:00
build_test.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00
build_timeout_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
build_windows_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
cli.go Add ignore-prerelease-flag to command help text 2024-03-12 13:19:21 -04:00
command_test.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00
config_file_unix.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
config_file_windows.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
configtype_enumer.go Run make fmt to fix checks 2023-04-27 15:17:31 -04:00
console.go command: remove unused FlagSetFlags enum 2023-10-16 09:51:53 -04:00
console_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
exec_test.go Remove amazon plugin from acceptance test 2023-10-24 06:00:42 -04:00
execute.go commands: rename plugin to execute 2024-03-11 15:06:13 -04:00
fix.go command: remove unused FlagSetFlags enum 2023-10-16 09:51:53 -04:00
fix_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
fmt.go command: remove unused FlagSetFlags enum 2023-10-16 09:51:53 -04:00
fmt_test.go fmt: print parse errors on error 2024-03-07 14:41:19 -05:00
hcl2_upgrade.go cmd/hcl2upgrade: Add VirtualBox as known plugin 2023-11-28 15:15:09 -05:00
hcl2_upgrade_test.go cmd/hcl2_upgrade: Don't error when using a HashiCorp plugin that is not installed 2023-10-24 06:00:42 -04:00
init.go packer: remove directory slices from structs 2024-03-01 09:04:15 -05:00
init_test.go command: migrate tests using the comment plugin 2024-03-01 09:04:15 -05:00
inspect.go command: remove unused FlagSetFlags enum 2023-10-16 09:51:53 -04:00
inspect_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
meta.go cmd/hcl2_upgrade: Don't error when using a HashiCorp plugin that is not installed 2023-10-24 06:00:42 -04:00
plugins.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
plugins_install.go command: scrub metadata from version at install 2024-03-26 10:08:28 -04:00
plugins_install_test.go command: migrate tests using the comment plugin 2024-03-01 09:04:15 -05:00
plugins_installed.go packer: remove directory slices from structs 2024-03-01 09:04:15 -05:00
plugins_remove.go command: support local paths for plugins remove 2024-03-15 09:31:09 -04:00
plugins_required.go packer: remove directory slices from structs 2024-03-01 09:04:15 -05:00
signal.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
test_utils.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
utils.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
utils_test.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00
validate.go Add ignore-prerelease-flag to command help text 2024-03-12 13:19:21 -04:00
validate_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
version.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
version_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00