From 78aaaa5be8ed7cb7fb9300da2cf86c72ba3eaa78 Mon Sep 17 00:00:00 2001 From: anshul sharma Date: Sat, 19 Jul 2025 13:48:15 +0530 Subject: [PATCH] unit test cases --- packer/plugin-getter/github/getter.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packer/plugin-getter/github/getter.go b/packer/plugin-getter/github/getter.go index 5881a9a37..3e276fac9 100644 --- a/packer/plugin-getter/github/getter.go +++ b/packer/plugin-getter/github/getter.go @@ -332,9 +332,7 @@ func (g *Getter) GetOfficialRelease(what string, opts plugingetter.GetOptions) ( } var req *http.Request - transform := func(in io.ReadCloser) (io.ReadCloser, error) { - return in, nil - } + transform := transformZipStream() switch what { case "releases": @@ -350,7 +348,6 @@ func (g *Getter) GetOfficialRelease(what string, opts plugingetter.GetOptions) ( // https://releases.hashicorp.com/terraform-provider-akamai/8.0.0/terraform-provider-akamai_8.0.0_darwin_arm64.zip url := filepath.ToSlash("https://releases.hashicorp.com/" + ghURI.PluginType() + "/" + opts.VersionString() + "/" + opts.ExpectedZipFilename()) req, err = http.NewRequest("GET", url, nil) - transform = transformZipStream() default: return nil, fmt.Errorf("%q not implemented", what) }