Skip to content

Commit

Permalink
fix: clarify scoop no windows archive errors
Browse files Browse the repository at this point in the history
closes #3648

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Dec 18, 2022
1 parent d7ce484 commit d4b570a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/pipe/scoop/scoop.go
Expand Up @@ -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"

Expand Down
20 changes: 20 additions & 0 deletions www/docs/errors/scoop-archive.md
@@ -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
```
1 change: 1 addition & 0 deletions www/mkdocs.yml
Expand Up @@ -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
Expand Down

0 comments on commit d4b570a

Please sign in to comment.