1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-29 01:44:39 +02:00

chore: added todo

This commit is contained in:
Carlos Alexandro Becker 2019-05-29 09:34:44 -03:00
parent d355350f63
commit 1a515881b2
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -84,7 +84,6 @@ func defaults(put *config.Put) {
// CheckConfig validates a Put configuration returning a descriptive error when appropriate
func CheckConfig(ctx *context.Context, put *config.Put, kind string) error {
if put.Target == "" {
return misconfigured(kind, put, "missing target")
}
@ -341,6 +340,7 @@ func resolveTargetTemplate(ctx *context.Context, put *config.Put, artifact artif
}
if put.Mode == ModeBinary {
// TODO: multiple archives here
data.Os = replace(ctx.Config.Archive.Replacements, artifact.Goos)
data.Arch = replace(ctx.Config.Archive.Replacements, artifact.Goarch)
data.Arm = replace(ctx.Config.Archive.Replacements, artifact.Goarm)