1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-01 13:07:49 +02:00

fix(nix): local filename when path not set

This commit is contained in:
Carlos Alexandro Becker 2023-06-25 04:26:31 +00:00
parent 528b06a075
commit 4dc31e99b7
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -148,6 +148,10 @@ func (p Pipe) doRun(ctx *context.Context, nix config.Nix, cl client.ReleaserURLT
}
nix.SkipUpload = skipUpload
if nix.Path == "" {
nix.Path = nix.Name + ".nix"
}
path := filepath.Join(ctx.Config.Dist, "nix", nix.Path)
filename := filepath.Base(path)
if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {