From 3cb0cd490e797d4386a59c4f7a169529998b9bbc Mon Sep 17 00:00:00 2001 From: Sebastien Dionne Date: Fri, 10 Oct 2025 19:19:56 -0400 Subject: [PATCH] Fix typos and linguistic errors in documentation Signed-off-by: Sebastien Dionne --- command/build_parallel_test.go | 2 +- hcl2template/parser.go | 2 +- hcl2template/types.variables.go | 2 +- helper/wrappedreadline/wrappedreadline.go | 2 +- main.go | 2 +- packer/core_test.go | 2 +- packer/plugin_client.go | 2 +- packer_test/common/plugin_tester/README.md | 2 +- packer_test/common/plugin_tester/docs/README.md | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/command/build_parallel_test.go b/command/build_parallel_test.go index 4bebc65cee8..d0147401e02 100644 --- a/command/build_parallel_test.go +++ b/command/build_parallel_test.go @@ -45,7 +45,7 @@ func (b *ParallelTestBuilder) Run(ctx context.Context, ui packersdk.Ui, hook pac return nil, nil } -// LockedBuilder wont run until unlock is called +// LockedBuilder won't run until unlock is called type LockedBuilder struct{ unlock chan interface{} } func (b *LockedBuilder) ConfigSpec() hcldec.ObjectSpec { return nil } diff --git a/hcl2template/parser.go b/hcl2template/parser.go index 1bc5d646732..08c101884d4 100644 --- a/hcl2template/parser.go +++ b/hcl2template/parser.go @@ -92,7 +92,7 @@ const ( // // Parse returns a PackerConfig that contains configuration layout of a packer // build; sources(builders)/provisioners/posts-processors will not be started -// and their contents wont be verified; Most syntax errors will cause an error, +// and their contents won't be verified; Most syntax errors will cause an error, // init should be called next to expand dynamic blocks and verify that used // things do exist. func (p *Parser) Parse(filename string, varFiles []string, argVars map[string]string) (*PackerConfig, hcl.Diagnostics) { diff --git a/hcl2template/types.variables.go b/hcl2template/types.variables.go index 140421e6cf9..bdcc2fac071 100644 --- a/hcl2template/types.variables.go +++ b/hcl2template/types.variables.go @@ -561,7 +561,7 @@ func looksLikeSentences(s string) bool { last := runes[len(runes)-1] // If the first rune is a letter then it must be an uppercase letter. To - // sorts of nudge people into writting sentences. For alphabets that don't + // sort of nudge people into writing sentences. For alphabets that don't // have the notion of 'upper', this does nothing. if unicode.IsLetter(first) && !unicode.IsUpper(first) { return false diff --git a/helper/wrappedreadline/wrappedreadline.go b/helper/wrappedreadline/wrappedreadline.go index 9d4bd7fcf25..f7512b99a5b 100644 --- a/helper/wrappedreadline/wrappedreadline.go +++ b/helper/wrappedreadline/wrappedreadline.go @@ -14,7 +14,7 @@ // passed by panicwrap to fix that. // // panicwrap should be checked for with panicwrap.Wrapped before using this -// librar, since this library won't adapt if the binary is not wrapped. +// library, since this library won't adapt if the binary is not wrapped. package wrappedreadline import ( diff --git a/main.go b/main.go index c0f1f740f31..9aacdedcb6b 100644 --- a/main.go +++ b/main.go @@ -41,7 +41,7 @@ func main() { func realMain() int { var wrapConfig panicwrap.WrapConfig // When following env variable is set, packer - // wont panic wrap itself as it's already wrapped. + // won't panic wrap itself as it's already wrapped. // i.e.: when terraform runs it. wrapConfig.CookieKey = "PACKER_WRAP_COOKIE" wrapConfig.CookieValue = "49C22B1A-3A93-4C98-97FA-E07D18C787B5" diff --git a/packer/core_test.go b/packer/core_test.go index b1694cbf86c..6ae87f5812e 100644 --- a/packer/core_test.go +++ b/packer/core_test.go @@ -706,7 +706,7 @@ func TestIsDoneInterpolating(t *testing.T) { expectedErr bool }{ // Many of these tests are just exercising the regex to make sure it - // doesnt get confused by different kinds of whitespace + // doesn't get confused by different kinds of whitespace {"charmander-{{ user `spacesaroundticks` }}", false, false}, {"pidgey-{{ user `partyparrot`}}", false, false}, {"jigglypuff-{{ user`notickspaaces`}}", false, false}, diff --git a/packer/plugin_client.go b/packer/plugin_client.go index dcd394bdf8e..7e71a03d57c 100644 --- a/packer/plugin_client.go +++ b/packer/plugin_client.go @@ -302,7 +302,7 @@ func (c *PluginClient) Start() (net.Addr, error) { }() // Make sure after we exit we read the lines from stdout forever - // so they dont' block since it is an io.Pipe + // so they don't block since it is an io.Pipe defer func() { go func() { for range linesCh { diff --git a/packer_test/common/plugin_tester/README.md b/packer_test/common/plugin_tester/README.md index 32f3fa71c05..c949d67271b 100644 --- a/packer_test/common/plugin_tester/README.md +++ b/packer_test/common/plugin_tester/README.md @@ -1,5 +1,5 @@ # Packer Test Plugin This directory is meant to be a minimal plugin that we can use for testing Packer. -Any components defined in this plugin are not for use, as they virtually do nothing, and are only here to test Packer's core capabilitities +Any components defined in this plugin are not for use, as they virtually do nothing, and are only here to test Packer's core capabilities diff --git a/packer_test/common/plugin_tester/docs/README.md b/packer_test/common/plugin_tester/docs/README.md index b93090c7e47..d312191c5dd 100644 --- a/packer_test/common/plugin_tester/docs/README.md +++ b/packer_test/common/plugin_tester/docs/README.md @@ -69,7 +69,7 @@ The Scaffolding plugin is intended as a starting point for creating Packer plugi ### Provisioners -- [provisioner](/docs/provisioners/provisioner-name.mdx) - The scaffolding provisioner is used to provisioner +- [provisioner](/docs/provisioners/provisioner-name.mdx) - The scaffolding provisioner is used to provision Packer builds. ### Post-processors