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:
parent
528b06a075
commit
4dc31e99b7
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user