1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: clarify scoop no windows archive errors

closes #3648

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos A Becker 2022-12-18 16:49:55 -03:00
parent d7ce4841c8
commit d4b570a002
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
3 changed files with 24 additions and 2 deletions

View File

@ -21,8 +21,9 @@ import (
"github.com/goreleaser/goreleaser/pkg/context"
)
// ErrNoWindows when there is no build for windows (goos doesn't contain windows).
var ErrNoWindows = errors.New("scoop requires a windows build and archive")
// ErrNoWindows when there is no build for windows (goos doesn't contain
// windows) or archive.format is binary.
var ErrNoWindows = errors.New("scoop requires a windows archive\nLearn more at https://goreleaser.com/errors/scoop-archive\n")
const scoopConfigExtra = "ScoopConfig"

View File

@ -0,0 +1,20 @@
# Scoop requires a windows archive
The Scoop pipe requires a Windows build and archive.
The archive should not be in `binary` format.
For instance, this won't work:
```yaml
archives:
- format: binary
```
But this would:
```yaml
archives:
- format: zip
```

View File

@ -155,6 +155,7 @@ nav:
- errors/resource-not-accessible-by-integration.md
- errors/no-history.md
- errors/multiple-binaries-archive.md
- errors/scoop-archive.md
- deprecations.md
- Cookbooks:
- About: cookbooks/index.md