mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix: multiple files with same name warning (#3660)
the warning was too trigger happy, this should fix it. thanks @ioga for reporting it. Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
89856068b8
commit
46fdb5552a
@ -294,11 +294,12 @@ func (artifacts Artifacts) List() []*Artifact {
|
||||
if item.Name == "" {
|
||||
continue
|
||||
}
|
||||
if names[item.Name] {
|
||||
plat := item.Goos + item.Goarch + item.Goarm + item.Gomips + item.Goamd64
|
||||
if names[item.Name+"_"+plat] {
|
||||
log.WithField("name", item.Name).
|
||||
Warn("multiple artifacts with the same name: this may cause errors")
|
||||
}
|
||||
names[item.Name] = true
|
||||
names[item.Name+"_"+plat] = true
|
||||
}
|
||||
return artifacts.items
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user