Skip to content

Commit 0d058b0

Browse files
authored
Merge pull request #2842 from alexandear/chore/correct-typos
chore: Fix typos in the filename, Makefile, comments, vars
2 parents 7489a77 + 25ddad2 commit 0d058b0

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ find_files_excluding_dir_and_test = $(shell find $(1) ! -type d ! -name '*_test.
160160
FILES_IN_PKG = $(call find_files_excluding_dir_and_test, ./pkg)
161161

162162
# returns a list of files which are dependencies for the command $(1).
163-
dependencis_for_cmd = go.mod $(call find_files_excluding_dir_and_test, ./cmd/$(1)) $(FILES_IN_PKG)
163+
dependencies_for_cmd = go.mod $(call find_files_excluding_dir_and_test, ./cmd/$(1)) $(FILES_IN_PKG)
164164

165165
### Force Building Targets
166166

@@ -214,7 +214,7 @@ force: # placeholder for force build
214214
# _output/bin/limactl$(exe)
215215

216216
# dependencies for limactl
217-
LIMACTL_DEPS = $(call dependencis_for_cmd,limactl)
217+
LIMACTL_DEPS = $(call dependencies_for_cmd,limactl)
218218
ifeq ($(GOOS),darwin)
219219
LIMACTL_DEPS += vz.entitlements
220220
endif
@@ -302,7 +302,7 @@ ENVS_$(LINUX_GUESTAGENT_PATH_COMMON)aarch64 = CGO_ENABLED=0 GOOS=linux GOARCH=ar
302302
ENVS_$(LINUX_GUESTAGENT_PATH_COMMON)armv7l = CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7
303303
ENVS_$(LINUX_GUESTAGENT_PATH_COMMON)riscv64 = CGO_ENABLED=0 GOOS=linux GOARCH=riscv64
304304
ENVS_$(LINUX_GUESTAGENT_PATH_COMMON)x86_64 = CGO_ENABLED=0 GOOS=linux GOARCH=amd64
305-
$(ALL_GUESTAGENTS_NOT_COMPRESSED): $(call dependencis_for_cmd,lima-guestagent) $$(call force_build_with_gunzip,$$@) | _output/share/lima
305+
$(ALL_GUESTAGENTS_NOT_COMPRESSED): $(call dependencies_for_cmd,lima-guestagent) $$(call force_build_with_gunzip,$$@) | _output/share/lima
306306
$(ENVS_$@) $(GO_BUILD) -o $@ ./cmd/lima-guestagent
307307
chmod 644 $@
308308
$(LINUX_GUESTAGENT_PATH_COMMON)%.gz: $(LINUX_GUESTAGENT_PATH_COMMON)% $$(call force_build_with_gunzip,$$@)
File renamed without changes.

pkg/progressbar/progressbar.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func showProgress() bool {
4747
return false
4848
}
4949

50-
// Both logrous and pb use stderr by default.
50+
// Both logrus and pb use stderr by default.
5151
logFd := os.Stderr.Fd()
5252
return isatty.IsTerminal(logFd) || isatty.IsCygwinTerminal(logFd)
5353
}

pkg/vz/network_darwin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (c *qemuPacketConn) Read(b []byte) (n int, err error) {
108108

109109
// Write writes a QEMU packet containing the raw packet. Returns (len(b), nil)
110110
// if a packet was written, and (0, err) if a packet was not fully written.
111-
// Errors means the prorocol is broken and the socket must be closed.
111+
// Errors means the protocol is broken and the socket must be closed.
112112
func (c *qemuPacketConn) Write(b []byte) (int, error) {
113113
size := len(b)
114114
header := uint32(size)

pkg/vz/vm_darwin.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,9 @@ func getMachineIdentifier(driver *driver.BaseDriver) (*vz.GenericMachineIdentifi
705705
}
706706

707707
func bootLoader(driver *driver.BaseDriver) (vz.BootLoader, error) {
708-
linuxBootLoder, err := linuxBootLoader(driver)
709-
if linuxBootLoder != nil {
710-
return linuxBootLoder, nil
708+
linuxBootLoader, err := linuxBootLoader(driver)
709+
if linuxBootLoader != nil {
710+
return linuxBootLoader, nil
711711
} else if !errors.Is(err, os.ErrNotExist) {
712712
return nil, err
713713
}

0 commit comments

Comments
 (0)