From c9569e22d7ca2fcfb8f9e7526be06a61afc9607d Mon Sep 17 00:00:00 2001 From: Ori Rawlings Date: Mon, 28 Nov 2022 11:15:41 -0600 Subject: [PATCH] fix: Compile errors --- internal/builders/golang/build.go | 2 +- internal/pipe/brew/brew.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/builders/golang/build.go b/internal/builders/golang/build.go index 3927e33bdc9..cc371b307ac 100644 --- a/internal/builders/golang/build.go +++ b/internal/builders/golang/build.go @@ -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 } diff --git a/internal/pipe/brew/brew.go b/internal/pipe/brew/brew.go index fd916fef01f..9c10f6f3079 100644 --- a/internal/pipe/brew/brew.go +++ b/internal/pipe/brew/brew.go @@ -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 }