1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-29 01:44:39 +02:00

style: spelling and grammar fixes (#4069)

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Ville Skyttä 2023-06-05 19:08:57 +03:00 committed by GitHub
parent d049166630
commit ef690d07ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 27 additions and 27 deletions

View File

@ -340,7 +340,7 @@ func (s *GiteaCreateReleaseSuite) TestTemplateError() {
require.Error(t, err)
}
func (s *GiteaCreateReleaseSuite) TestErrorGettingExisitngRelease() {
func (s *GiteaCreateReleaseSuite) TestErrorGettingExistingRelease() {
t := s.T()
httpmock.RegisterResponder("GET", s.releasesURL, httpmock.NewStringResponder(404, ""))

View File

@ -249,7 +249,7 @@ func TestGitLabURLsDownloadTemplate(t *testing.T) {
}
}
func TestGitLabCreateReleaseUknownHost(t *testing.T) {
func TestGitLabCreateReleaseUnknownHost(t *testing.T) {
ctx := testctx.NewWithCfg(config.Project{
Release: config.Release{
GitLab: config.Repo{
@ -292,7 +292,7 @@ func TestGitLabCreateReleaseReleaseNotExists(t *testing.T) {
return
}
// Create release if it doens't exists
// Create release if it doesn't exist
if r.Method == http.MethodPost {
createdRelease = true
w.WriteHeader(http.StatusOK)
@ -374,7 +374,7 @@ func TestGitLabCreateReleaseReleaseExists(t *testing.T) {
require.Equal(t, 2, totalRequests)
}
func TestGitLabCreateReleaseUnkownHTTPError(t *testing.T) {
func TestGitLabCreateReleaseUnknownHTTPError(t *testing.T) {
totalRequests := 0
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
totalRequests++

View File

@ -45,7 +45,7 @@ func requireHeader(t *testing.T, r *http.Request, header, want string) {
require.Equal(t, want, r.Header.Get(header))
}
// TODO: improve all tests below by checking wether the mocked handlers
// TODO: improve all tests below by checking whether the mocked handlers
// were called or not.
func TestRunPipe_ModeBinary(t *testing.T) {

View File

@ -325,7 +325,7 @@ func dataFor(ctx *context.Context, cl client.Client, choco config.Chocolatey, ar
// The intention is to be used to wrap the standard exec and provide the
// ability to create a fake one for testing.
type cmder interface {
// Exec executes an command.
// Exec executes a command.
Exec(*context.Context, string, ...string) ([]byte, error)
}

View File

@ -1,4 +1,4 @@
// Package metadata provides the pipe implementation that creates a artifacts.json file in the dist folder.
// Package metadata provides the pipe implementation that creates an artifacts.json file in the dist folder.
package metadata
import (

View File

@ -1,4 +1,4 @@
// Package pipe provides generic erros for pipes to use.
// Package pipe provides generic errors for pipes to use.
package pipe
import (

View File

@ -162,7 +162,7 @@ func TestUnmarshall(t *testing.T) {
}
func slackTestHook() string {
// redacted: replace this by a real Slack Web Incoming Hook to test the featue end to end.
// redacted: replace this by a real Slack Web Incoming Hook to test the feature end to end.
const hook = "https://hooks.slack.com/services/*********/***********/************************"
return hook

View File

@ -470,8 +470,8 @@ func TestExtraFile(t *testing.T) {
apath := filepath.Join(dist, "foo_amd64", "prime", "a", "b", "c", "extra-file.txt")
bpath := filepath.Join(dist, "foo_amd64", "prime", "testdata", "extra-file-2.txt")
requireEqualFileConents(t, "testdata/extra-file.txt", apath)
requireEqualFileConents(t, "testdata/extra-file-2.txt", bpath)
requireEqualFileContents(t, "testdata/extra-file.txt", apath)
requireEqualFileContents(t, "testdata/extra-file-2.txt", bpath)
}
func TestDefault(t *testing.T) {
@ -706,7 +706,7 @@ func TestDependencies(t *testing.T) {
require.Equal(t, []string{"snapcraft"}, Pipe{}.Dependencies(ctx))
}
func requireEqualFileConents(tb testing.TB, a, b string) {
func requireEqualFileContents(tb testing.TB, a, b string) {
tb.Helper()
eq, err := gio.EqualFileContents(a, b)
require.NoError(tb, err)

View File

@ -1,4 +1,4 @@
// Package pipeline provides generic erros for pipes to use.
// Package pipeline provides generic errors for pipes to use.
package pipeline
import (

View File

@ -1,4 +1,4 @@
// Package semerrgroup wraps a error group with a semaphore with configurable
// Package semerrgroup wraps an error group with a semaphore with configurable
// size, so you can control the number of tasks being executed simultaneously.
package semerrgroup
@ -9,7 +9,7 @@ import (
"golang.org/x/sync/errgroup"
)
// Group is the Semphore ErrorGroup itself.
// Group is the Semaphore ErrorGroup itself.
type Group interface {
Go(func() error)
Wait() error

View File

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
)
// RequireTemplateError requires thqt an error happens and that it is an template error.
// RequireTemplateError requires thqt an error happens and that it is a template error.
func RequireTemplateError(tb testing.TB, err error) {
tb.Helper()

View File

@ -13,7 +13,7 @@ publishers:
dir: "{{ dir .ArtifactPath }}"
```
Example of a [publishers](/customization/publishers/) section pushing files to a Artifactory instance using jfrog cli with api key in environment
Example of a [publishers](/customization/publishers/) section pushing files to an Artifactory instance using jfrog cli with api key in environment
```yaml
publishers:

View File

@ -69,7 +69,7 @@ environment variable is not used at all.
### Password / API Key
The password or API key will be stored in a environment variable.
The password or API key will be stored in an environment variable.
The configured name of your Artifactory instance will be used.
With this way we support auth for multiple instances.
This also means that the `name` per configured instance needs to be unique

View File

@ -198,7 +198,7 @@ builds:
skip: false
# By default, GoReleaser will create your binaries inside
# `dist/${BuildID}_${BuildTarget}`, which is an unique directory per build
# `dist/${BuildID}_${BuildTarget}`, which is a unique directory per build
# target in the matrix.
# You can set subdirs within that folder using the `binary` property.
#
@ -518,7 +518,7 @@ If you'd like to see this in action, check [this example on GitHub](https://gith
## A note about folder names inside `dist`
By default, GoReleaser will create your binaries inside
`dist/${BuildID}_${BuildTarget}`, which is an unique directory per build target
`dist/${BuildID}_${BuildTarget}`, which is a unique directory per build target
in the matrix.
Those names have no guarantees of remaining the same from one version to

View File

@ -109,7 +109,7 @@ chocolateys:
source_repo: "https://push.chocolatey.org/"
# Setting this will prevent goreleaser to actually try to push the package
# to chocolatey repository, leaving the responsability of publishing it to
# to chocolatey repository, leaving the responsibility of publishing it to
# the user.
skip_publish: false

View File

@ -3,7 +3,7 @@
!!! success "GoReleaser Pro"
Includes is a [GoReleaser Pro feature](/pro/).
GoReleaser allows you to include other files from an URL or in the current
GoReleaser allows you to include other files from a URL or in the current
file system.
Files are included recursively in the order they are declared.

View File

@ -422,7 +422,7 @@ nfpms:
Learn more about the [name template engine](/customization/templates/).
!!! info
Fields marked with "overridable" can be overriden for any format.
Fields marked with "overridable" can be overridden for any format.
## A note about Termux

View File

@ -110,7 +110,7 @@ scoops:
# Note that while scoop works if the manifests are in a folder,
# 'scoop bucket list' will show 0 manifests if they are not in the root
# folder.
# In short, it's generaly better to leave this empty.
# In short, it's generally better to leave this empty.
folder: Scoops
# Git author used to commit to the repository.
@ -162,7 +162,7 @@ scoops:
# A two-dimensional array of string, specifies the shortcut values to make available in the startmenu.
# The array has to contain a executable/label pair. The third and fourth element are optional.
# The array has to contain an executable/label pair. The third and fourth element are optional.
#
# Since GoReleaser v1.17.0.
shortcuts: [["drumroll.exe", "drumroll"]]

View File

@ -149,7 +149,7 @@ On all fields, you have these available functions:
| `filter "text" "regex"` | keeps only the lines matching the given regex, analogous to `grep -E`. Since v1.6. |
| `reverseFilter "text" "regex"` | keeps only the lines **not** matching the given regex, analogous to `grep -vE`. Since v1.6. |
| `title "foo"` | "titlenize" the string using english as language. See [Title](https://pkg.go.dev/golang.org/x/text/cases#Title). Since v1.14. |
| `mdv2escape "foo"` | escape characteres according to MarkdownV2, especially useful in the Telegram integration. Since v1.19. |
| `mdv2escape "foo"` | escape characters according to MarkdownV2, especially useful in the Telegram integration. Since v1.19. |
With all those fields, you may be able to compose the name of your artifacts
pretty much the way you want:

View File

@ -57,7 +57,7 @@ universal_binaries:
- replace: true
```
That config will join your default build macOS binaries into an Universal Binary,
That config will join your default build macOS binaries into a Universal Binary,
removing the single-arch binaries from the artifact list.
From there, the `Arch` template variable for this file will be `all`.