File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import (
19
19
"context"
20
20
"fmt"
21
21
"io"
22
- "io/ioutil"
23
22
"math/rand"
24
23
"net/http"
25
24
"net/url"
@@ -136,14 +135,16 @@ func (r *Releaser) UpdateIndexFile() (bool, error) {
136
135
indexFile = repo .NewIndexFile ()
137
136
}
138
137
139
- chartPackages , err := ioutil .ReadDir (r .config .PackagePath )
138
+ // We have to explicitly glob for *.tgz files only. If GPG signing is enabled,
139
+ // this would also return *.tgz.prov files otherwise, which we don't want here.
140
+ chartPackages , err := filepath .Glob (r .config .PackagePath + "/*.tgz" )
140
141
if err != nil {
141
142
return false , err
142
143
}
143
144
144
145
var update bool
145
146
for _ , chartPackage := range chartPackages {
146
- ch , err := loader .LoadFile (filepath . Join ( r . config . PackagePath , chartPackage . Name ()) )
147
+ ch , err := loader .LoadFile (chartPackage )
147
148
if err != nil {
148
149
return false , err
149
150
}
You can’t perform that action at this time.
0 commit comments