Skip to content

Commit 6f6b74e

Browse files
authored
Fix ID formatting in tempdir.go
The character ":" is invalid for filesystem paths. This change will ensure that temp directories created for OCI repositories do not contain invalid syntax.
1 parent 700fbf9 commit 6f6b74e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tempdir.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ func makeTempDir(release, chart string, opts *ChartifyOpts) string {
1818
var id string
1919
if opts.ID != "" {
2020
id = strings.ReplaceAll(opts.ID, "/", string(filepath.Separator))
21+
id = strings.ReplaceAll(id, ":", string(filepath.Separator))
2122
} else {
2223
id, err = GenerateID(release, chart, opts)
2324
if err != nil {

0 commit comments

Comments
 (0)