1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-04 03:11:55 +02:00

fix: merge issues

This commit is contained in:
Carlos A Becker 2022-11-28 14:28:38 -03:00
parent 1b8395d6b6
commit f05f3b5b7f
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ func (*Builder) Build(ctx *context.Context, build config.Build, options api.Opti
testEnvs := []string{}
env = append(env, ctx.Env.Strings()...)
for _, e := range details.Env {
ee, err := tmpl.New(ctx).WithEnvS(env).WithArtifact(a, nil).Apply(e)
ee, err := tmpl.New(ctx).WithEnvS(env).WithArtifact(a).Apply(e)
if err != nil {
return err
}

View File

@ -280,7 +280,7 @@ func doBuildFormula(ctx *context.Context, data templateData) (string, error) {
}
func installs(ctx *context.Context, cfg config.Homebrew, art *artifact.Artifact) ([]string, error) {
applied, err := tmpl.New(ctx).WithArtifact(art, nil).Apply(cfg.Install)
applied, err := tmpl.New(ctx).WithArtifact(art).Apply(cfg.Install)
if err != nil {
return nil, err
}