Merge pull request #37211 from hashicorp/update-stacks-plugin-binary-download-to-accomodate-crt-zip

Update stacks plugin binary download to accommodate Zip contents in CRT style release
jbardin/ignore_changes
Mark DeCrane 12 months ago committed by GitHub
commit e9f6f2e282
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -128,7 +128,7 @@ func (v BinaryManager) resolveRelease() (*Binary, error) {
// Unarchive
unzip := getter.ZipDecompressor{
FilesLimit: 1,
FilesLimit: 3, // plugin binary, .version file, and LICENSE.txt
FileSizeLimit: 500 * MB,
}
targetPath := v.binaryLocation()

@ -32,7 +32,7 @@ func NewStacksBinaryManager(ctx context.Context, stacksPluginDataDir, overridePa
overridePath: overridePath,
host: svchost.Hostname(serviceURL.Host),
client: client,
binaryName: "terraform-stacksplugin",
binaryName: "tfstacks",
pluginName: "stacksplugin",
goos: goos,
arch: arch,

Loading…
Cancel
Save