Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typo in logs #816

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions daemon/process/inotify/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion daemon/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion environment/vm/lima/lima.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

Expand Down
Loading