Skip to content

Commit ac05cd1

Browse files
committed
[FIX] 修改拉取chart保存的地址,避免ci中的 invalid cross-device link
1 parent c244385 commit ac05cd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/syncer/index.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"gopkg.in/yaml.v3"
66
"helm.sh/helm/v3/pkg/chart/loader"
77
"helm.sh/helm/v3/pkg/chartutil"
8-
"io/ioutil"
8+
"os"
99
"regexp"
1010
"sort"
1111
"time"
@@ -315,7 +315,7 @@ func modifyChartImageTag(chartPath string) (string, error) {
315315
//if err != nil {
316316
// return errors.Trace(err)
317317
//}
318-
targetPath, err := ioutil.TempDir("", "source-charts-syncer")
318+
targetPath, err := os.MkdirTemp("", "source-charts-syncer")
319319
chartPath, err = chartutil.Save(cq, targetPath)
320320
if err != nil {
321321
return "", errors.Trace(err)

0 commit comments

Comments
 (0)