From e4bc4360a7530523f481800cdd9ee5746d19f9a9 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Tue, 26 Sep 2023 13:10:17 +0800 Subject: [PATCH] fix: typo Signed-off-by: guoguangwu --- app/app.go | 2 +- daemon/process/inotify/volumes.go | 4 ++-- daemon/process/process.go | 2 +- environment/vm/lima/lima.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/app.go b/app/app.go index dab80387b..f0568cd08 100644 --- a/app/app.go +++ b/app/app.go @@ -260,7 +260,7 @@ func (c colimaApp) SSH(layer bool, args ...string) error { return fmt.Errorf("not a mounted directory: %s", workDir) }(); err != nil { // the errors returned here is not critical and thereby silenced. - // the goal is to prevent unecessary warning message from Lima. + // the goal is to prevent unnecessary warning message from Lima. log.Trace(fmt.Errorf("error checking if PWD is mounted: %w", err)) // fallback to the user's homedir diff --git a/daemon/process/inotify/volumes.go b/daemon/process/inotify/volumes.go index 024e47592..47d3fefcf 100644 --- a/daemon/process/inotify/volumes.go +++ b/daemon/process/inotify/volumes.go @@ -92,7 +92,7 @@ func (f *inotifyProcess) monitorContainerVolumes(ctx context.Context, c chan<- [ for { select { case <-ctx.Done(): - log.Trace("stop signal recieved") + log.Trace("stop signal received") err := ctx.Err() if err != nil { log.Trace(fmt.Errorf("error during stop: %w", err)) @@ -120,7 +120,7 @@ func omitChildrenDirectories(dirs []string) []string { omitted := map[int]struct{}{} for i := 0; i < len(dirs); i++ { - // if the index is ommitted, skip + // if the index is omitted, skip if _, ok := omitted[i]; ok { continue } diff --git a/daemon/process/process.go b/daemon/process/process.go index a4759d9e4..a00732e72 100644 --- a/daemon/process/process.go +++ b/daemon/process/process.go @@ -75,7 +75,7 @@ func (p processDeps) Install(host environment.HostActions) error { for _, d := range deps { if !d.Installed() { if err := d.Install(host); err != nil { - return fmt.Errorf("error occured installing dependencies for '%s': %w", process.Name(), err) + return fmt.Errorf("error occurred installing dependencies for '%s': %w", process.Name(), err) } } } diff --git a/environment/vm/lima/lima.go b/environment/vm/lima/lima.go index 53bca80a5..6effd8c6e 100644 --- a/environment/vm/lima/lima.go +++ b/environment/vm/lima/lima.go @@ -210,7 +210,7 @@ func (l *limaVM) startDaemon(ctx context.Context, conf config.Config) (context.C // check if inotify is running if conf.MountINotify { if inotifyEnabled, _ := ctx.Value(ctxKeyInotify).(bool); !inotifyEnabled { - log.Warnln("error occured enabling inotify daemon") + log.Warnln("error occurred enabling inotify daemon") } }