File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ func (o *Installer) ProviderURLParse(path string, acceptPreRelease bool) (packag
190190 }
191191 o .Package = & cfg
192192 o .AdditionBinaries = cfg .AdditionBinaries
193+ o .Tar = cfg .Tar != "false"
193194
194195 if version == "latest" || version == "" {
195196 ghClient := pkg.ReleaseClient {
@@ -235,7 +236,7 @@ func (o *Installer) ProviderURLParse(path string, acceptPreRelease bool) (packag
235236 if err = tmp .Execute (& buf , hdPkg ); err == nil {
236237 packageURL = fmt .Sprintf ("https://github.com/%s/%s/releases/download/%s/%s" ,
237238 o .Org , o .Repo , version , buf .String ())
238- if ! hasPackageSuffix (packageURL ) {
239+ if o . Tar && ! hasPackageSuffix (packageURL ) {
239240 packageURL = fmt .Sprintf ("%s.%s" , packageURL , packagingFormat )
240241 }
241242 o .Output = buf .String ()
@@ -257,7 +258,6 @@ func (o *Installer) ProviderURLParse(path string, acceptPreRelease bool) (packag
257258 return
258259 }
259260
260- o .Tar = cfg .Tar != "false"
261261 if cfg .Binary != "" {
262262 if cfg .Binary , err = renderTemplate (cfg .Binary , hdPkg ); err != nil {
263263 return
You can’t perform that action at this time.
0 commit comments