Skip to content

Commit

Permalink
remove if check (#33)
Browse files Browse the repository at this point in the history
I think , don't block the generate process, just warn the user
  • Loading branch information
cxjava authored and kamilsk committed Mar 20, 2023
1 parent 946a7c2 commit b90fced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ func makeName(prefix, target string) (string, error) {
target = strings.Replace(target, "{{ .Arm }}", "{{ .Arch }}", -1)

// otherwise if it contains a conditional, we can't (easily)
// translate that to bash. Ask for bug report.
// translate that to bash. Ask for bug report.
if strings.Contains(target, "{{ if") ||
strings.Contains(target, "{{if") {
//nolint: lll
return "", fmt.Errorf("name_template %q contains unknown conditional or ARM format. Please file bug at https://github.com/goreleaser/godownloader", target)
log.Warnf("⚠️ It contains a conditional, we can't (easily) translate that to bash. name_template %q contains unknown conditional or ARM format.", target)
}

varmap := map[string]string{
Expand Down

0 comments on commit b90fced

Please sign in to comment.