style: spelling and grammar fixes (#462)

This commit is contained in:
Ville Skyttä
2022-02-21 20:53:33 +02:00
committed by GitHub
parent 5e6e6f645d
commit b684867299
8 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ An example:
docs: Add example for --release-notes flag
I added an example to the docs of the `--release-notes` flag to make
the usage more clear. The example is an realistic use case and might
the usage more clear. The example is a realistic use case and might
help others to generate their own changelog.
See #284
+1 -1
View File
@@ -84,7 +84,7 @@ func ensureValidArch(info *nfpm.Info) *nfpm.Info {
// nolint: gochecknoglobals
var Default = &Apk{}
// Apk is a apk packager implementation.
// Apk is an apk packager implementation.
type Apk struct{}
func (a *Apk) ConventionalFileName(info *nfpm.Info) string {
+1 -1
View File
@@ -79,7 +79,7 @@ func PGPArmoredDetachSignWithKeyID(message io.Reader, keyFile, passphrase string
return signature.Bytes(), nil
}
// PGPVerify is exported for use in tests and verifies a ASCII-armored or non-ASCII-armored
// PGPVerify is exported for use in tests and verifies an ASCII-armored or non-ASCII-armored
// signature using an ASCII-armored or non-ASCII-armored public key file. The signer
// identity is not explicitly checked, other that the obvious fact that the signer's key must
// be in the armoredPubKeyFile.
+1 -1
View File
@@ -390,7 +390,7 @@ func Validate(info *Info) (err error) {
if len(info.EmptyFolders) > 0 {
deprecation.Println("'empty_folders' is deprecated and " +
"will be removed in a future version, create content with type 'dir' and " +
"directoy name as 'dst' instead")
"directory name as 'dst' instead")
for _, emptyFolder := range info.EmptyFolders {
if contents.ContainsDestination(emptyFolder) {
+1 -1
View File
@@ -162,7 +162,7 @@ func addChangeLog(info *nfpm.Info, rpm *rpmpack.RPM) error {
err := tpl.Execute(&formattedNotes, entry)
if err != nil {
return fmt.Errorf("formatting changlog notes: %w", err)
return fmt.Errorf("formatting changelog notes: %w", err)
}
changes[idx] = strings.TrimSpace(formattedNotes.String())
+2 -2
View File
@@ -196,7 +196,7 @@ scripts:
preremove: ./scripts/preremove.sh
postremove: ./scripts/postremove.sh
# All fields above marked as `overridable` can be overriden for a given package format in this section.
# All fields above marked as `overridable` can be overridden for a given package format in this section.
overrides:
# The depends override can for example be used to provide version constraints for dependencies where
# different package formats use different versions or for dependencies that are named differently.
@@ -271,7 +271,7 @@ deb:
# Custom deb triggers
triggers:
# register interrest on a trigger activated by another package
# register interest on a trigger activated by another package
# (also available: interest_await, interest_noawait)
interest:
- some-trigger-name
+1 -1
View File
@@ -7,7 +7,7 @@ nFPM is a simple, 0-dependencies, `deb`, `rpm` and `apk` packager.
## Why
While [fpm][] is great, for me, it is a bummer that it depends on `ruby`, `tar`
and other softwares.
and other software.
I wanted something that could be used as a binary and/or as a library and that
was really simple.
+1 -1
View File
@@ -69,7 +69,7 @@ go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
Download the pre-compiled binaries from the [releases page][releases] and copy them to the desired location.
## Veryifing the artifacts
## Verifying the artifacts
### binaries