Skip to content

Commit 8135be4

Browse files
GNUmakefile: add spellfix target, use it. (#4387)
TODO: Remove the go.mod/go.sum in internal/tools once doing so doesn't break CI (e.g. once we drop support for go 1.19) * builder/cc1as.h: fix typo found by 'make spell' * GNUmakefile: remove exception for inbetween, fix instance now found by 'make spell' * GNUmakefile: remove exception for programmmer, fix instance now found by 'make spell' * go.mod: use updated misspell. GNUmakefile: add spellfix target, use it. * ignore directories properly when invoking spellchecker. * make spell: give internal/tools its own go.mod, as misspell requires newer go * make lint: depend on tools and run the installed revive (which was perhaps implied by the change that added revive to internal/tools, but not required in GNUmakefile until we gave internal/tools its own temporary go.mod) * .github: now that 'make spell' works well, run it from CI * GNUmakefile: make spell now aborts if it finds misspelt words, so what it finds doesn't get lost in CI logs * GNUmakefile: tools: avoid -C option on go generate to make test-llvm15-go119 circleci job happy, see https://cs.opensource.google/go/go/+/2af48cbb7d85e5fdc635e75b99f949010c607786 * internal/tools/go.mod: fix format of go version to leave out patchlevel, else go complains.
1 parent 835e732 commit 8135be4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+169
-93
lines changed

.github/workflows/linux.yml

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ jobs:
115115
gem install --no-document fpm
116116
- name: Run linter
117117
run: make lint
118+
- name: Run spellcheck
119+
run: make spell
118120
- name: Build TinyGo release
119121
run: |
120122
make release deb -j3 STATIC=1

GNUmakefile

+11-6
Original file line numberDiff line numberDiff line change
@@ -949,20 +949,25 @@ endif
949949

950950
.PHONY: tools
951951
tools:
952-
go generate -C ./internal/tools -tags tools ./
952+
cd internal/tools && go generate -tags tools ./
953953

954954
.PHONY: lint
955-
lint: ## Lint source tree
956-
go run github.com/mgechev/revive -version
955+
lint: tools ## Lint source tree
956+
revive -version
957957
# TODO: lint more directories!
958958
# revive.toml isn't flexible enough to filter out just one kind of error from a checker, so do it with grep here.
959959
# Can't use grep with friendly formatter. Plain output isn't too bad, though.
960960
# Use 'grep .' to get rid of stray blank line
961-
go run github.com/mgechev/revive -config revive.toml compiler/... src/{os,reflect}/*.go | grep -v "should have comment or be unexported" | grep '.' | awk '{print}; END {exit NR>0}'
961+
revive -config revive.toml compiler/... src/{os,reflect}/*.go | grep -v "should have comment or be unexported" | grep '.' | awk '{print}; END {exit NR>0}'
962962

963+
SPELLDIRSCMD=find . -depth 1 -type d | egrep -wv '.git|lib|llvm|src'; find src -depth 1 | egrep -wv 'device|internal|net|vendor'; find src/internal -depth 1 -type d | egrep -wv src/internal/wasi
963964
.PHONY: spell
964-
spell: ## Spellcheck source tree
965-
go run github.com/client9/misspell/cmd/misspell -i 'ackward,devided,extint,inbetween,programmmer,rela' $$( find . -depth 1 -type d | egrep -w -v 'lib|llvm|src/net' )
965+
spell: tools ## Spellcheck source tree
966+
misspell -error --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) )
967+
968+
.PHONY: spellfix
969+
spellfix: tools ## Same as spell, but fixes what it finds
970+
misspell -w --dict misspell.csv -i 'ackward,devided,extint,rela' $$( $(SPELLDIRSCMD) )
966971

967972
# https://www.client9.com/self-documenting-makefiles/
968973
.PHONY: help

builder/ar.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/blakesmith/ar"
1717
)
1818

19-
// makeArchive creates an arcive for static linking from a list of object files
19+
// makeArchive creates an archive for static linking from a list of object files
2020
// given as a parameter. It is equivalent to the following command:
2121
//
2222
// ar -rcs <archivePath> <objs...>

builder/cc1as.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct AssemblerInvocation {
9393
EmitDwarfUnwindType EmitDwarfUnwind;
9494

9595
// Whether to emit compact-unwind for non-canonical entries.
96-
// Note: maybe overriden by other constraints.
96+
// Note: maybe overridden by other constraints.
9797
unsigned EmitCompactUnwindNonCanonical : 1;
9898

9999
/// The name of the relocation model to use.

builder/tools.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func link(linker string, flags ...string) error {
4949
err := cmd.Run()
5050
if err != nil {
5151
if buf.Len() == 0 {
52-
// The linker failed but ther was no output.
52+
// The linker failed but there was no output.
5353
// Therefore, show some output anyway.
5454
return fmt.Errorf("failed to run linker: %w", err)
5555
}

compileopts/config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (c *Config) GOOS() string {
6060
}
6161

6262
// GOARCH returns the GOARCH of the target. This might not always be the actual
63-
// archtecture: for example, the AVR target is not supported by the Go standard
63+
// architecture: for example, the AVR target is not supported by the Go standard
6464
// library so such targets will usually pretend to be linux/arm.
6565
func (c *Config) GOARCH() string {
6666
return c.Target.GOARCH
@@ -461,7 +461,7 @@ func (c *Config) BinaryFormat(ext string) string {
461461

462462
// Programmer returns the flash method and OpenOCD interface name given a
463463
// particular configuration. It may either be all configured in the target JSON
464-
// file or be modified using the -programmmer command-line option.
464+
// file or be modified using the -programmer command-line option.
465465
func (c *Config) Programmer() (method, openocdInterface string) {
466466
switch c.Options.Programmer {
467467
case "":

compiler/asserts.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (b *builder) createUnsafeSliceStringCheck(name string, ptr, len llvm.Value,
9999
// However, in practice, it is also necessary to check that the length is
100100
// not too big that a GEP wouldn't be possible without wrapping the pointer.
101101
// These two checks (non-negative and not too big) can be merged into one
102-
// using an unsiged greater than.
102+
// using an unsigned greater than.
103103

104104
// Make sure the len value is at least as big as a uintptr.
105105
len = b.extendInteger(len, lenType, b.uintptrType)

compiler/compiler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func NewTargetMachine(config *Config) (llvm.TargetMachine, error) {
242242
}
243243

244244
// Sizes returns a types.Sizes appropriate for the given target machine. It
245-
// includes the correct int size and aligment as is necessary for the Go
245+
// includes the correct int size and alignment as is necessary for the Go
246246
// typechecker.
247247
func Sizes(machine llvm.TargetMachine) types.Sizes {
248248
targetData := machine.CreateTargetData()

compiler/gc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (b *builder) trackValue(value llvm.Value) {
7878
}
7979
}
8080

81-
// trackPointer creates a call to runtime.trackPointer, bitcasting the poitner
81+
// trackPointer creates a call to runtime.trackPointer, bitcasting the pointer
8282
// first if needed. The input value must be of LLVM pointer type.
8383
func (b *builder) trackPointer(value llvm.Value) {
8484
b.createRuntimeCall("trackPointer", []llvm.Value{value, b.stackChainAlloca}, "")

compiler/interface.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (b *builder) createMakeInterface(val llvm.Value, typ types.Type, pos token.
8686

8787
// extractValueFromInterface extract the value from an interface value
8888
// (runtime._interface) under the assumption that it is of the type given in
89-
// llvmType. The behavior is undefied if the interface is nil or llvmType
89+
// llvmType. The behavior is undefined if the interface is nil or llvmType
9090
// doesn't match the underlying type of the interface.
9191
func (b *builder) extractValueFromInterface(itf llvm.Value, llvmType llvm.Type) llvm.Value {
9292
valuePtr := b.CreateExtractValue(itf, 1, "typeassert.value.ptr")

compiler/llvm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func (c *compilerContext) getPointerBitmap(typ llvm.Type, pos token.Pos) *big.In
419419
}
420420
}
421421

422-
// archFamily returns the archtecture from the LLVM triple but with some
422+
// archFamily returns the architecture from the LLVM triple but with some
423423
// architecture names ("armv6", "thumbv7m", etc) merged into a single
424424
// architecture name ("arm").
425425
func (c *compilerContext) archFamily() string {

compiler/llvmutil/llvm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func AppendToGlobal(mod llvm.Module, globalName string, values ...llvm.Value) {
207207
used.SetLinkage(llvm.AppendingLinkage)
208208
}
209209

210-
// Return the LLVM major version.
210+
// Version returns the LLVM major version.
211211
func Version() int {
212212
majorStr := strings.Split(llvm.Version, ".")[0]
213213
major, err := strconv.Atoi(majorStr)

compiler/map.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func (b *builder) zeroUndefBytes(llvmType llvm.Type, ptr llvm.Value) error {
326326
if i < numFields-1 {
327327
nextOffset = b.targetData.ElementOffset(llvmStructType, i+1)
328328
} else {
329-
// Last field? Next offset is the total size of the allcoate struct.
329+
// Last field? Next offset is the total size of the allocate struct.
330330
nextOffset = b.targetData.TypeAllocSize(llvmStructType)
331331
}
332332

compiler/syscall.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (b *builder) createRawSyscall(call *ssa.CallCommon) (llvm.Value, error) {
145145
// Also useful:
146146
// https://web.archive.org/web/20220529105937/https://www.linux-mips.org/wiki/Syscall
147147
// The syscall number goes in r2, the result also in r2.
148-
// Register r7 is both an input paramter and an output parameter: if it
148+
// Register r7 is both an input parameter and an output parameter: if it
149149
// is non-zero, the system call failed and r2 is the error code.
150150
// The code below implements the O32 syscall ABI, not the N32 ABI. It
151151
// could implement both at the same time if needed (like what appears to

diagnostics/diagnostics.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func CreateDiagnostics(err error) ProgramDiagnostic {
4343
if err == nil {
4444
return nil
4545
}
46-
// Right now, the compiler will only show errors for the first pacakge that
46+
// Right now, the compiler will only show errors for the first package that
4747
// fails to build. This is likely to change in the future.
4848
return ProgramDiagnostic{
4949
createPackageDiagnostic(err),
@@ -147,7 +147,7 @@ func createDiagnostics(err error) []Diagnostic {
147147
// last package
148148
fmt.Fprintln(buf, "\timports", pkgPath+": "+err.Err.Error())
149149
} else {
150-
// not the last pacakge
150+
// not the last package
151151
fmt.Fprintln(buf, "\timports", pkgPath)
152152
}
153153
}

go.mod

+1-12
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ require (
77
github.com/blakesmith/ar v0.0.0-20150311145944-8bd4349a67f2
88
github.com/chromedp/cdproto v0.0.0-20220113222801-0725d94bb6ee
99
github.com/chromedp/chromedp v0.7.6
10-
github.com/client9/misspell v0.3.4
1110
github.com/gofrs/flock v0.8.1
1211
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf
1312
github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf
1413
github.com/marcinbor85/gohex v0.0.0-20200531091804-343a4b548892
1514
github.com/mattn/go-colorable v0.1.13
1615
github.com/mattn/go-tty v0.0.4
17-
github.com/mgechev/revive v1.3.7
1816
github.com/sigurn/crc16 v0.0.0-20211026045750-20ab5afb07e3
1917
go.bug.st/serial v1.6.0
2018
golang.org/x/net v0.26.0
@@ -25,23 +23,14 @@ require (
2523
)
2624

2725
require (
28-
github.com/BurntSushi/toml v1.3.2 // indirect
29-
github.com/chavacava/garif v0.1.0 // indirect
3026
github.com/chromedp/sysutil v1.0.0 // indirect
3127
github.com/creack/goselect v0.1.2 // indirect
32-
github.com/fatih/color v1.16.0 // indirect
33-
github.com/fatih/structtag v1.2.0 // indirect
3428
github.com/gobwas/httphead v0.1.0 // indirect
3529
github.com/gobwas/pool v0.2.1 // indirect
3630
github.com/gobwas/ws v1.1.0 // indirect
3731
github.com/josharian/intern v1.0.0 // indirect
3832
github.com/mailru/easyjson v0.7.7 // indirect
3933
github.com/mattn/go-isatty v0.0.20 // indirect
40-
github.com/mattn/go-runewidth v0.0.9 // indirect
41-
github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517 // indirect
42-
github.com/mitchellh/go-homedir v1.1.0 // indirect
43-
github.com/olekukonko/tablewriter v0.0.5 // indirect
44-
github.com/pkg/errors v0.9.1 // indirect
45-
github.com/spf13/afero v1.11.0 // indirect
34+
github.com/stretchr/testify v1.8.4 // indirect
4635
golang.org/x/text v0.16.0 // indirect
4736
)

go.sum

+2-31
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
1-
github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8=
2-
github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
31
github.com/aykevl/go-wasm v0.0.2-0.20240312204833-50275154210c h1:4T0Vj1UkGgcpkRrmn7SbokebnlfxJcMZPgWtOYACAAA=
42
github.com/aykevl/go-wasm v0.0.2-0.20240312204833-50275154210c/go.mod h1:7sXyiaA0WtSogCu67R2252fQpVmJMh9JWJ9ddtGkpWw=
53
github.com/blakesmith/ar v0.0.0-20150311145944-8bd4349a67f2 h1:oMCHnXa6CCCafdPDbMh/lWRhRByN0VFLvv+g+ayx1SI=
64
github.com/blakesmith/ar v0.0.0-20150311145944-8bd4349a67f2/go.mod h1:PkYb9DJNAwrSvRx5DYA+gUcOIgTGVMNkfSCbZM8cWpI=
7-
github.com/chavacava/garif v0.1.0 h1:2JHa3hbYf5D9dsgseMKAmc/MZ109otzgNFk5s87H9Pc=
8-
github.com/chavacava/garif v0.1.0/go.mod h1:XMyYCkEL58DF0oyW4qDjjnPWONs2HBqYKI+UIPD+Gww=
95
github.com/chromedp/cdproto v0.0.0-20211126220118-81fa0469ad77/go.mod h1:At5TxYYdxkbQL0TSefRjhLE3Q0lgvqKKMSFUglJ7i1U=
106
github.com/chromedp/cdproto v0.0.0-20220113222801-0725d94bb6ee h1:+SFdIVfQpG0s0DHYzou0kgfE0n0ZjKPwbiRJsXrZegU=
117
github.com/chromedp/cdproto v0.0.0-20220113222801-0725d94bb6ee/go.mod h1:At5TxYYdxkbQL0TSefRjhLE3Q0lgvqKKMSFUglJ7i1U=
128
github.com/chromedp/chromedp v0.7.6 h1:2juGaktzjwULlsn+DnvIZXFUckEp5xs+GOBroaea+jA=
139
github.com/chromedp/chromedp v0.7.6/go.mod h1:ayT4YU/MGAALNfOg9gNrpGSAdnU51PMx+FCeuT1iXzo=
1410
github.com/chromedp/sysutil v1.0.0 h1:+ZxhTpfpZlmchB58ih/LBHX52ky7w2VhQVKQMucy3Ic=
1511
github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moAV0xufSww=
16-
github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=
17-
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
1812
github.com/creack/goselect v0.1.2 h1:2DNy14+JPjRBgPzAd1thbQp4BSIihxcBf0IXhQXDRa0=
1913
github.com/creack/goselect v0.1.2/go.mod h1:a/NhLweNvqIYMuxcMOuWY516Cimucms3DglDzQP3hKY=
20-
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
2114
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
2215
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
23-
github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM=
24-
github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE=
25-
github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4=
26-
github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94=
2716
github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU=
2817
github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM=
2918
github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og=
@@ -51,41 +40,24 @@ github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/
5140
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
5241
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
5342
github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
54-
github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0=
55-
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
5643
github.com/mattn/go-tty v0.0.4 h1:NVikla9X8MN0SQAqCYzpGyXv0jY7MNl3HOWD2dkle7E=
5744
github.com/mattn/go-tty v0.0.4/go.mod h1:u5GGXBtZU6RQoKV8gY5W6UhMudbR5vXnUe7j3pxse28=
58-
github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517 h1:zpIH83+oKzcpryru8ceC6BxnoG8TBrhgAvRg8obzup0=
59-
github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg=
60-
github.com/mgechev/revive v1.3.7 h1:502QY0vQGe9KtYJ9FpxMz9rL+Fc/P13CI5POL4uHCcE=
61-
github.com/mgechev/revive v1.3.7/go.mod h1:RJ16jUbF0OWC3co/+XTxmFNgEpUPwnnA0BRllX2aDNA=
62-
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
63-
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
64-
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
65-
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
6645
github.com/orisano/pixelmatch v0.0.0-20210112091706-4fa4c7ba91d5 h1:1SoBaSPudixRecmlHXb/GxmaD3fLMtHIDN13QujwQuc=
6746
github.com/orisano/pixelmatch v0.0.0-20210112091706-4fa4c7ba91d5/go.mod h1:nZgzbfBr3hhjoZnS66nKrHmduYNpc34ny7RK4z5/HM0=
68-
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
69-
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
7047
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
7148
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
7249
github.com/sigurn/crc16 v0.0.0-20211026045750-20ab5afb07e3 h1:aQKxg3+2p+IFXXg97McgDGT5zcMrQoi0EICZs8Pgchs=
7350
github.com/sigurn/crc16 v0.0.0-20211026045750-20ab5afb07e3/go.mod h1:9/etS5gpQq9BJsJMWg1wpLbfuSnkm8dPF6FdW2JXVhA=
74-
github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8=
75-
github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY=
76-
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
77-
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
78-
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
79-
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
80-
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
8151
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
8252
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
8353
go.bug.st/serial v1.6.0 h1:mAbRGN4cKE2J5gMwsMHC2KQisdLRQssO9WSM+rbZJ8A=
8454
go.bug.st/serial v1.6.0/go.mod h1:UABfsluHAiaNI+La2iESysd9Vetq7VRdpxvjx7CmmOE=
8555
golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0=
56+
golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
8657
golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ=
8758
golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE=
8859
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
60+
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
8961
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
9062
golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
9163
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -103,7 +75,6 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+
10375
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
10476
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
10577
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
106-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
10778
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
10879
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
10980
tinygo.org/x/go-llvm v0.0.0-20240627184919-3b50c76783a8 h1:bLsZXRUBavt++CJlMN7sppNziqu3LyamESLhFJcpqFQ=

internal/tools/go.mod

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// TODO: remove this (by merging it into the top-level go.mod)
2+
// once the top level go.mod specifies a go new enough to make our version of misspell happy.
3+
4+
module tools
5+
6+
go 1.21
7+
8+
require (
9+
github.com/golangci/misspell v0.6.0
10+
github.com/mgechev/revive v1.3.9
11+
)
12+
13+
require (
14+
github.com/BurntSushi/toml v1.4.0 // indirect
15+
github.com/chavacava/garif v0.1.0 // indirect
16+
github.com/fatih/color v1.17.0 // indirect
17+
github.com/fatih/structtag v1.2.0 // indirect
18+
github.com/hashicorp/go-version v1.7.0 // indirect
19+
github.com/mattn/go-colorable v0.1.13 // indirect
20+
github.com/mattn/go-isatty v0.0.20 // indirect
21+
github.com/mattn/go-runewidth v0.0.9 // indirect
22+
github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517 // indirect
23+
github.com/mitchellh/go-homedir v1.1.0 // indirect
24+
github.com/olekukonko/tablewriter v0.0.5 // indirect
25+
github.com/pkg/errors v0.9.1 // indirect
26+
github.com/spf13/afero v1.11.0 // indirect
27+
golang.org/x/sys v0.22.0 // indirect
28+
golang.org/x/text v0.14.0 // indirect
29+
golang.org/x/tools v0.23.0 // indirect
30+
)

0 commit comments

Comments
 (0)