Skip to content

Commit 10469d1

Browse files
authored
Fix ID formatting in tempdir.go (#175)
The character ":" is invalid for filesystem paths. This change will ensure that temp directories created for OCI repositories do not contain invalid syntax. Signed-off-by: Matt Cockrell <Matthew.Cockrell@thomsonreuters.com>
1 parent 91c0166 commit 10469d1

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)