Skip to content

Commit

Permalink
Merge pull request #25 from andreabolognani/sanitize
Browse files Browse the repository at this point in the history
Sanitize RPM names further
  • Loading branch information
rmohr authored Oct 19, 2022
2 parents 58fd7d2 + e2e0fd8 commit f4def13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/bazel/bazel.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,7 @@ func (r *tar2Files) SetFiles(dirs []string, fileMap map[string][]string) {
func sanitize(name string) string {
name = strings.ReplaceAll(name, ":", "__")
name = strings.ReplaceAll(name, "+", "__plus__")
name = strings.ReplaceAll(name, "~", "__tilde__")
name = strings.ReplaceAll(name, "^", "__caret__")
return name
}

0 comments on commit f4def13

Please sign in to comment.