Lucas Bajolet
eb9e1a4795
packer: remove implicit required plugins
...
Since this feature is no longer something we plan to activate later, as
it contradicts with our efforts to remove bundled plugins, and
encouraging users to move to either manually installing plugins, or
managing them through `packer init', we clean-up the code for this
feature.
2023-08-17 16:51:49 -04:00
hashicorp-copywrite[bot]
19055df3ec
[COMPLIANCE] License changes ( #12568 )
...
* Updating the license from MPL to Business Source License
Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at https://hashi.co/bsl-blog , FAQ at https://hashi.co/license-faq , and details of the license at www.hashicorp.com/bsl.
* Update copyright file headers to BUSL-1.1
---------
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2023-08-10 15:53:29 -07:00
hashicorp-copywrite[bot]
b7df3ca36f
[COMPLIANCE] Add Copyright and License Headers ( #12254 )
...
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2023-03-02 15:37:05 -05:00
Wilken Rivera
a7c37ee34d
Add tests for the packer plugins subcommand ( #11660 )
...
* Add tests for plugins install command
* Add tests for plugins remove command
* Add PACKER_GITHUB_API_TOKEN to all test env
* Update dir hashes for non-darwin os
* Update tests with feedback from review
2022-03-15 16:32:49 -04:00
Wilken Rivera
ea3c73a480
Set default file extension for binary installations on Windows ( #11625 )
...
This change sets the default file extension for binary installations on
Windows.
Results before change
```
$ packer plugins install github.com/hashicorp/amazon
9 errors occurred:
* ignoring invalid remote binary packer-plugin-amazon_v1.0.8_x5.0_freebsd_arm64.zip: wrong system, expected windows_amd64
* ignoring invalid remote binary packer-plugin-amazon_v1.0.8_x5.0_darwin_amd64.zip: wrong system, expected windows_amd64
* ignoring invalid remote binary packer-plugin-amazon_v1.0.8_x5.0_freebsd_amd64.zip: wrong system, expected windows_amd64
* ignoring invalid remote binary packer-plugin-amazon_v1.0.8_x5.0_linux_amd64.zip: wrong system, expected windows_amd64
* ignoring invalid remote binary packer-plugin-amazon_v1.0.8_x5.0_darwin_arm64.zip: wrong system, expected windows_amd64
* ignoring invalid remote binary packer-plugin-amazon_v1.0.8_x5.0_windows_arm64.zip: wrong system, expected windows_amd64
* ignoring invalid remote binary packer-plugin-amazon_v1.0.8_x5.0_windows_386.zip: wrong system, expected windows_amd64
* ignoring invalid remote binary packer-plugin-amazon_v1.0.8_x5.0_linux_arm.zip: wrong system, expected windows_amd64
* could not find a packer-plugin-amazon_v1.0.8_x5.0_windows_amd64.zip file in zipfile
exit status 1
```
Results after change
```
$ packer plugins install github.com/hashicorp/amazon
Installed plugin github.com/hashicorp/amazon v1.0.8 in "C:/Users/Packer/AppData/Roaming/packer.d/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.0.8_x5.0_windows_amd64.exe"
```
2022-03-03 17:30:27 -05:00
Adrien Delorme
9f4a1281dd
Add packer plugins command and subcommands to interact with plugins ( #11553 )
...
* add basic docs for plugins command
* refactor docs
Co-Authored-By: Wilken Rivera <1749304+nywilken@users.noreply.github.com>
* add plugins command
* add plugins subcommands
they do nothing for now
* add plugins installed command + tests
* add plugins install command
* add remove plugin command
* better docs for the plugins install command
* remove duplicate content
* better output for installed plugins
* add plugins required command
* Update plugins_install.go
* add newline after `Usage:`
* Update plugins_remove.go
* Update plugins_required.go
* Update plugins_remove.go
* Update plugins_installed.go
* Update plugins_install.go
* add docs
* Update plugins_install.go
* fix typos
* Update plugins_test.go
* fix typos
Co-Authored-By: Wilken Rivera <1749304+nywilken@users.noreply.github.com>
* Update core_wrapper.go
Co-Authored-By: Wilken Rivera <1749304+nywilken@users.noreply.github.com>
* Update website/content/docs/commands/plugins/remove.mdx
Co-authored-by: Wilken Rivera <wilken@hashicorp.com>
* Update website/content/docs/commands/plugins/required.mdx
Co-authored-by: Wilken Rivera <wilken@hashicorp.com>
* Update website/content/docs/commands/plugins/required.mdx
Co-authored-by: Wilken Rivera <wilken@hashicorp.com>
* Update plugins_required.go
* Update install.mdx
* Update required.mdx
* plugins requirement, warn when no plugin was found
* Update website/content/docs/commands/plugins/required.mdx
Co-authored-by: Wilken Rivera <wilken@hashicorp.com>
Co-authored-by: Wilken Rivera <1749304+nywilken@users.noreply.github.com>
Co-authored-by: Wilken Rivera <wilken@hashicorp.com>
2022-02-10 16:53:50 -05:00