From a7040f4d425dc10e77d8620bdc2dcda395906698 Mon Sep 17 00:00:00 2001 From: Tom Fleet Date: Mon, 15 Jun 2026 17:33:45 +0100 Subject: [PATCH] Add tangled workflows and switch to mise --- .golangci.yml | 162 ++++++++++++------------------------ .tangled/workflows/Lint.yml | 19 +++++ .tangled/workflows/Test.yml | 19 +++++ Taskfile.yml | 66 --------------- debug.go | 13 ++- debug_test.go | 1 + go.sum | 54 ++---------- mise.toml | 78 +++++++++++++++++ 8 files changed, 188 insertions(+), 224 deletions(-) create mode 100644 .tangled/workflows/Lint.yml create mode 100644 .tangled/workflows/Test.yml delete mode 100644 Taskfile.yml create mode 100644 mise.toml diff --git a/.golangci.yml b/.golangci.yml index df0a168..c206b39 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,60 +4,57 @@ formatters: enable: - gofumpt - goimports + - golines settings: gofumpt: extra-rules: true + golines: + max-len: 120 + linters: default: all disable: - - decorder # Don't care about this - - dupl # Basically every table driven test ever triggers this - - dupword # Messes with test cases more often than not - - err113 # Out of date - - exhaustruct # No - - forbidigo # Nothing to forbid - - funlen # Bad metric for complexity - - ginkgolinter # I don't use whatever this is - - gochecknoglobals # Globals are fine sometimes, use common sense - - gocognit # Cmplexity with another name, don't need both - - gocyclo # cyclop does this instead - - godox # "todo" and "fixme" comments are allowed - - goheader # No need - - gosmopolitan # No need - - grouper # Imports take care of themselves, rest is common sense - - ireturn # This is just not necessary or practical in a real codebase - - lll # Auto formatters do this and what they can't do I don't care about - - maintidx # This is just the inverse of complexity... which is cyclop - - nestif # cyclop does this - - nlreturn # Similar to wsl, I think best left to judgement - - noinlineerr # Inline errors are fine - - nonamedreturns # Named returns are often helpful, it's naked returns that are the issue - - paralleltest # I've never had Go tests take longer than a few seconds, it's fine - - thelper # Lots of false positives in here due to the way I do table tests - - unparam # gopls is better and more subtle - - varnamelen # Lots of false positives of things that are fine - - wrapcheck # Not every error must be wrapped - - wsl # Very aggressive, some of this I like but tend to do anyway - - wsl_v5 # Very aggressive, some of this I like but tend to do anyway + - cyclop # gocognit is the single complexity linter, cognitive beats cyclomatic + - decorder # Don't care about this + - err113 # Not everything needs this + - exhaustruct # This is just a bad idea + - forbidigo # Nothing to forbid + - funlen # Bad metric for complexity + - goconst # Got significantly more annoying recently + - gocyclo # Prefer cognitive complexity over naive metrics + - godox # "todo" and "fixme" comments are allowed + - gomodguard # Deprecated + - ireturn # AST is full of interfaces we need to return (e.g. Expression) + - lll # Auto formatters do this and what they can't do I don't care about + - maintidx # Prefer cognitive + - mnd # Annoying and too sensitive + - nestif # Nesting depth is the dominant factor in gocognit's score already + - noinlineerr # Inline errors are fine + - nonamedreturns # Named returns are often helpful documentation, it's naked returns that are the issue + - paralleltest # I've never had Go tests take longer than a few seconds, it's fine + - unparam # gopls is better and more subtle + - varnamelen # Lots of false positives of things that are fine + - wrapcheck # Not every error must be wrapped + - wsl # Deprecated exclusions: presets: # See https://golangci-lint.run/usage/false-positives/#exclusion-presets - - comments # Revive in particular has lots of false positives - - std-error-handling - common-false-positives + - std-error-handling rules: - path: _test\.go linters: - - prealloc # These kinds of optimisations will make no difference to test code - - gosec # Tests don't need security stuff + - dupl # Common false positives with table driven tests + - dupword # Messes with test cases more often than not + - gochecknoglobals # Flags and env vars + - goconst # Sometimes repetition is okay in tests + - gosec # Tests don't need security stuff + - prealloc # These kinds of optimisations will make no difference to test code settings: - cyclop: - max-complexity: 20 - depguard: rules: main: @@ -69,103 +66,50 @@ linters: desc: use math/rand/v2 instead errcheck: - check-type-assertions: true check-blank: true + check-type-assertions: true exhaustive: check: - - switch - map + - switch default-signifies-exhaustive: true - staticcheck: - checks: - - all - gosec: excludes: - - G104 # Errors not checked, handled by errcheck + - G104 # Errors not checked, handled by errcheck govet: enable-all: true nakedret: - max-func-lines: 0 # Disallow any naked returns + max-func-lines: 0 # Disallow any naked returns nolintlint: allow-unused: false require-explanation: true require-specific: true + revive: + # every other revive rule overlaps one or more of the other + # linters. These are the ones nothing else covers. + enable-all-rules: false + rules: + - name: context-as-argument # ctx must be the first parameter + - name: deep-exit # os.Exit / log.Fatal outside main and init + - name: modifies-parameter # don't mutate value parameters + - name: modifies-value-receiver # value receiver mutations are lost + - name: unexported-return # exported func returning an unexported type + + staticcheck: + checks: + - all + usetesting: context-background: true context-todo: true os-chdir: true + os-create-temp: true os-mkdir-temp: true os-setenv: true - os-create-temp: true os-temp-dir: true - - revive: - max-open-files: 256 - enable-all-rules: true - rules: - - name: add-constant - disabled: true # goconst does this - - - name: argument-limit - arguments: - - 5 - - - name: cognitive-complexity - disabled: true # gocognit does this - - - name: comment-spacings - arguments: - - "nolint:" - - - name: cyclomatic - disabled: true # cyclop does this - - - name: exported - arguments: - - checkPrivateReceivers - - checkPublicInterface - - - name: function-length - disabled: true # Bad proxy for complexity - - - name: function-result-limit - arguments: - - 3 - - - name: import-shadowing - disabled: true # predeclared does this - - - name: line-length-limit - disabled: true # gofmt/golines handles this well enough - - - name: max-public-structs - disabled: true # This is a dumb rule - - - name: redefines-builtin-id - disabled: true # predeclared does this - - - name: unhandled-error - arguments: - - fmt\.(Fp|P)rint(ln|f)? - - strings.Builder.Write(String|Byte)? - - bytes.Buffer.Write(String|Byte)? - - go/printer.(Fp|P)rint(ln|f)? - - - name: flag-parameter - disabled: true # As far as I can work out this just doesn't like bools - - - name: unused-parameter - disabled: true # The gopls unused analyzer covers this better - - - name: unused-receiver - disabled: true # As above - - - name: var-naming - disabled: true diff --git a/.tangled/workflows/Lint.yml b/.tangled/workflows/Lint.yml new file mode 100644 index 0000000..9513ce3 --- /dev/null +++ b/.tangled/workflows/Lint.yml @@ -0,0 +1,19 @@ +when: + - event: [push] + branch: [main] + - event: [pull_request] + branch: [main] + +engine: nixery + +dependencies: + nixpkgs/nixpkgs-unstable: + - go + - golangci-lint + +steps: + - name: Format + command: golangci-lint fmt ./... --diff-colored + + - name: Lint + command: golangci-lint run ./... diff --git a/.tangled/workflows/Test.yml b/.tangled/workflows/Test.yml new file mode 100644 index 0000000..2c0272b --- /dev/null +++ b/.tangled/workflows/Test.yml @@ -0,0 +1,19 @@ +when: + - event: [push] + branch: [main] + - event: [pull_request] + branch: [main] + +engine: nixery + +dependencies: + nixpkgs/nixpkgs-unstable: + - go + nixpkgs: + - gcc # Needed for CGO_ENABLED=1 (go test -race) + +steps: + - name: Test + environment: + CGO_ENABLED: "1" + command: go test -race ./... diff --git a/Taskfile.yml b/Taskfile.yml deleted file mode 100644 index e6f0fce..0000000 --- a/Taskfile.yml +++ /dev/null @@ -1,66 +0,0 @@ -# https://taskfile.dev - -version: "3" - -vars: - COV_DATA: coverage.out - -tasks: - default: - desc: List all available tasks - silent: true - cmd: task --list - - tidy: - desc: Tidy dependencies in go.mod and go.sum - cmd: go mod tidy - - fmt: - desc: Run go fmt on all source files - cmd: go fmt ./... - - test: - desc: Run the test suite - cmd: go test -race ./... {{ .CLI_ARGS }} - - bench: - desc: Run all project benchmarks - cmd: go test ./... -run None -benchmem -bench . {{ .CLI_ARGS }} - - lint: - desc: Run the linters and auto-fix if possible - cmd: golangci-lint run --fix - preconditions: - - sh: command -v golangci-lint - msg: golangci-lint not installed, see https://golangci-lint.run/usage/install/#local-installation - - doc: - desc: Render the pkg docs locally - cmd: pkgsite -open - preconditions: - - sh: command -v pkgsite - msg: pkgsite not installed, run go install golang.org/x/pkgsite/cmd/pkgsite@latest - - cov: - desc: Calculate test coverage and render the html - generates: - - "{{ .COV_DATA }}" - cmds: - - go test -race -cover -covermode atomic -coverprofile {{ .COV_DATA }} ./... - - go tool cover -html {{ .COV_DATA }} - - check: - desc: Run tests and linting in one - cmds: - - task: test - - task: lint - - sloc: - desc: Print lines of code - cmd: fd . -e go | xargs wc -l | sort -nr | head - - clean: - desc: Remove build artifacts and other clutter - cmds: - - go clean ./... - - rm -rf {{ .COV_DATA }} diff --git a/debug.go b/debug.go index 45cc982..35da301 100644 --- a/debug.go +++ b/debug.go @@ -26,14 +26,17 @@ func Debug(value any) { _, file, line, ok := runtime.Caller(1) // Skip: 1 so this file gets skipped if !ok { fmt.Fprintln(os.Stderr, "DEBUG: Unable to determine caller") + return } // Parse the file in question fset := token.NewFileSet() + f, err := parser.ParseFile(fset, file, nil, parser.ParseComments) if err != nil { fmt.Fprintf(os.Stderr, "DEBUG: Failed to parse %s: %v\n", file, err) + return } @@ -87,7 +90,13 @@ func findAndDebug(fset *token.FileSet, line int, value any) func(node ast.Node) fmt.Fprintf(os.Stderr, "DEBUG: [%v] %v = %v\n", fset.Position(call.Fun.Pos()), buf.String(), val) } else { // We could format the value with go fmt, so use that - fmt.Fprintf(os.Stderr, "DEBUG: [%v] %v = %s\n", fset.Position(call.Fun.Pos()), buf.String(), string(formatted)) + fmt.Fprintf( + os.Stderr, + "DEBUG: [%v] %v = %s\n", + fset.Position(call.Fun.Pos()), + buf.String(), + string(formatted), + ) } return false // Found it @@ -98,6 +107,7 @@ func findAndDebug(fset *token.FileSet, line int, value any) func(node ast.Node) // was a call to debug.Debug. func isDebugCall(expr ast.Expr) bool { selector, ok := expr.(*ast.SelectorExpr) + return ok && isIdent(selector.X, "debug") && isIdent(selector.Sel, "Debug") } @@ -105,5 +115,6 @@ func isDebugCall(expr ast.Expr) bool { // the expression was assigned to that name. func isIdent(expr ast.Expr, name string) bool { ident, ok := expr.(*ast.Ident) + return ok && ident.Name == name } diff --git a/debug_test.go b/debug_test.go index 1520970..357240a 100644 --- a/debug_test.go +++ b/debug_test.go @@ -20,6 +20,7 @@ func TestDebug(t *testing.T) { t.Run(tt.name, func(t *testing.T) { run := func() error { debug.Debug(tt.arg) + return nil } _, stderr := test.CaptureOutput(t, run) diff --git a/go.sum b/go.sum index 66e9ffe..d39d4b8 100644 --- a/go.sum +++ b/go.sum @@ -1,58 +1,16 @@ -go.followtheprocess.codes/diff v0.1.1 h1:pQpnow+Uj39S4xxNC6FLLfsJnolVM5+a90EIo5QZN6s= -go.followtheprocess.codes/diff v0.1.1/go.mod h1:bDSZPC9CvkRr8HlOwjE1bl/8qFAmiA3LVtkThRnniis= go.followtheprocess.codes/diff v0.2.0 h1:NuEPvXSUEIeBqpSukuhkAUchS1EaiH7PYSj9zesd8Uc= go.followtheprocess.codes/diff v0.2.0/go.mod h1:bDSZPC9CvkRr8HlOwjE1bl/8qFAmiA3LVtkThRnniis= -go.followtheprocess.codes/hue v0.6.0 h1:JDLnRrkauCCIyYRqKNBDM+X6X5o75j2CG3iddnzIuhc= -go.followtheprocess.codes/hue v0.6.0/go.mod h1:tNCWKaywHqkFo20hYOVwG7CaoRajJeE2AueP5HStY7U= -go.followtheprocess.codes/hue v0.7.0 h1:6HaZTGc4NYVnqqjYZTTBcVYRKb8MyfPe5yBHJiBfekg= -go.followtheprocess.codes/hue v0.7.0/go.mod h1:gSn5xK6KJapih+eFgQk3woo1qg3/rx9XSrAanUIuDr8= -go.followtheprocess.codes/hue v1.0.0 h1:0fYXAGR1o+w7Vja+Q+iVtqeEP3/CE6ET/pniyl8e9yo= -go.followtheprocess.codes/hue v1.0.0/go.mod h1:gSn5xK6KJapih+eFgQk3woo1qg3/rx9XSrAanUIuDr8= go.followtheprocess.codes/hue v1.1.0 h1:bPq21YLdWxQ0ki4lIvXCYtgutaGaDUYaSIENDdrrlNQ= go.followtheprocess.codes/hue v1.1.0/go.mod h1:VnCeVmYESGmX7fZJSFs59u8G+5zseCwGdFiJGHCFg4o= -go.followtheprocess.codes/snapshot v0.6.0 h1:aq7WIc8hInqdpdrOzntk9lqHwxUqSw3YbgLYaoy0laQ= -go.followtheprocess.codes/snapshot v0.6.0/go.mod h1:0hskrLbmTgcv3h1YgVgX0CXiiOKq0UvhM4PewnOZOno= -go.followtheprocess.codes/test v0.22.0 h1:erXLdEY/Kj0+gt5rNVtHzbJ+7g9l0JBNuzc7WtcFz00= -go.followtheprocess.codes/test v0.22.0/go.mod h1:5xDKZUMZ125YgTPBxaAo2nioaSSk7dkfcTCyzsigWzE= -go.followtheprocess.codes/test v0.23.0 h1:XpKkEAzzm2/FmOAfR6GHRvgdY3XhragOWYCCvr9F6wg= -go.followtheprocess.codes/test v0.23.0/go.mod h1:Bhx7T8XRQs6w7DuT06uG4EPbGeaVgj3HL4laIGLVV4w= -go.followtheprocess.codes/test v0.23.1 h1:VoucCC8qKb6tKnBOCRZ7Ln2Ex1oV+HMXHdZyJ6DURB8= -go.followtheprocess.codes/test v0.23.1/go.mod h1:sL19ttHv+BSJSMtdPXTP05aWwl58ciap0SoLp1hucKk= -go.followtheprocess.codes/test v1.0.0 h1:5m2MPOQpohDC9pf5hgqpH+4ldJP5g+YFVdoGQY41aeU= -go.followtheprocess.codes/test v1.0.0/go.mod h1:e627pR8IhsTV/RfuP/WKYjyL0BmuIbmaw2iKlQBCWrY= -go.followtheprocess.codes/test v1.1.0 h1:1v2JyMd3STr7dIXzcHEhct2qvS8/mTtGYbSyhpReciI= -go.followtheprocess.codes/test v1.1.0/go.mod h1:BHZi5SZahJw01xcuc7EgrlyzX7zJLXAWy11rOR9geVw= -go.followtheprocess.codes/test v1.2.0 h1:MWuEVS7ijQLp9qCGYNmzTazWIfEL/TbQid4PnaVFzaQ= -go.followtheprocess.codes/test v1.2.0/go.mod h1:ZbzmY8F5w44x9kk1vdvJlBu+9dhunHtXf/A1ydXaYP4= -go.followtheprocess.codes/test v1.2.2 h1:iaUSB6BhzH/UAsVMhMjUW1uSVn8GMa2GgqPMqwxGwuo= -go.followtheprocess.codes/test v1.2.2/go.mod h1:/Lq3YrwTqU/tb1wbO+Kt7Gs1I3qzFu/o/CUykOavoVA= -go.followtheprocess.codes/test v1.3.0 h1:LoLaG1dup81omaa5WoR7Wouwn/DjBXeHTwkIvNqWFLY= -go.followtheprocess.codes/test v1.3.0/go.mod h1:/Lq3YrwTqU/tb1wbO+Kt7Gs1I3qzFu/o/CUykOavoVA= +go.followtheprocess.codes/snapshot v0.10.1 h1:GWNOdDxGtRiw0HVKnidhCHI0ymmZaaiHAARimyjNVU4= +go.followtheprocess.codes/snapshot v0.10.1/go.mod h1:vCkJeHMLa4mOP451SrA9m+Ym5tumx66hXm318jAwf5Y= go.followtheprocess.codes/test v1.4.0 h1:LBZYn2MqOW20HLe1AJm3lMLplSWH+zycfC7mmS9NF2w= go.followtheprocess.codes/test v1.4.0/go.mod h1:/Lq3YrwTqU/tb1wbO+Kt7Gs1I3qzFu/o/CUykOavoVA= -golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw= -golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= -golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k= -golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= -golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ= -golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= -golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= -golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +go.yaml.in/yaml/v4 v4.0.0-rc.4 h1:UP4+v6fFrBIb1l934bDl//mmnoIZEDK0idg1+AIvX5U= +go.yaml.in/yaml/v4 v4.0.0-rc.4/go.mod h1:aZqd9kCMsGL7AuUv/m/PvWLdg5sjJsZ4oHDEnfPPfY0= golang.org/x/sys v0.43.0 h1:Rlag2XtaFTxp19wS8MXlJwTvoh8ArU6ezoyFsMyCTNI= golang.org/x/sys v0.43.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= -golang.org/x/term v0.32.0 h1:DR4lr0TjUs3epypdhTOkMmuF5CDFJ/8pOnbzMZPQ7bg= -golang.org/x/term v0.32.0/go.mod h1:uZG1FhGx848Sqfsq4/DlJr3xGGsYMu/L5GW4abiaEPQ= -golang.org/x/term v0.34.0 h1:O/2T7POpk0ZZ7MAzMeWFSg6S5IpWd/RXDlM9hgM3DR4= -golang.org/x/term v0.34.0/go.mod h1:5jC53AEywhIVebHgPVeg0mj8OD3VO9OzclacVrqpaAw= -golang.org/x/term v0.35.0 h1:bZBVKBudEyhRcajGcNc3jIfWPqV4y/Kt2XcoigOWtDQ= -golang.org/x/term v0.35.0/go.mod h1:TPGtkTLesOwf2DE8CgVYiZinHAOuy5AYUYT1lENIZnA= -golang.org/x/term v0.36.0 h1:zMPR+aF8gfksFprF/Nc/rd1wRS1EI6nDBGyWAvDzx2Q= -golang.org/x/term v0.36.0/go.mod h1:Qu394IJq6V6dCBRgwqshf3mPF85AqzYEzofzRdZkWss= -golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU= -golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254= golang.org/x/term v0.42.0 h1:UiKe+zDFmJobeJ5ggPwOshJIVt6/Ft0rcfrXZDLWAWY= golang.org/x/term v0.42.0/go.mod h1:Dq/D+snpsbazcBG5+F9Q1n2rXV8Ma+71xEjTRufARgY= -golang.org/x/tools v0.34.0 h1:qIpSLOxeCYGg9TrcJokLBG4KFA6d795g0xkBkiESGlo= -golang.org/x/tools v0.34.0/go.mod h1:pAP9OwEaY1CAW3HOmg3hLZC5Z0CCmzjAF2UQMSqNARg= +golang.org/x/tools v0.44.0 h1:UP4ajHPIcuMjT1GqzDWRlalUEoY+uzoZKnhOjbIPD2c= +golang.org/x/tools v0.44.0/go.mod h1:KA0AfVErSdxRZIsOVipbv3rQhVXTnlU6UhKxHd1seDI= diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..5866624 --- /dev/null +++ b/mise.toml @@ -0,0 +1,78 @@ +# Dev tasks for {{project_slug}}. Run `mise tasks` to list, `mise run ` to execute. +# Extra args after `--` are appended to the task's command: +# mise run test -- -run TestFoo +# mise run bench -- -benchtime 5s + +[tools] +typos = "latest" +"go:golang.org/x/pkgsite/cmd/pkgsite" = "latest" +golangci-lint = "latest" + +[vars] +COV_DATA = "coverage.out" + +[tasks.tidy] +description = "Tidy dependencies in go.mod and go.sum" +sources = ["**/*.go", "go.mod", "go.sum"] +run = "go mod tidy" + +[tasks.gen] +description = "Run go generate" +sources = ["**/*.go"] +run = "go generate ./..." + +[tasks.fmt] +description = "Run go fmt on all source files" +sources = ["**/*.go", ".golangci.yml"] +run = "golangci-lint fmt ./..." + +[tasks.test] +description = "Run the test suite" +sources = [ + "**/*.go", + "go.mod", + "go.sum", + "**/testdata/**/*", +] +# -race needs CGO (https://go.dev/doc/articles/race_detector#Requirements) +env = { CGO_ENABLED = "1" } +run = "go test -race ./..." + +[tasks.bench] +description = "Run all project benchmarks" +sources = ["**/*.go"] +run = "go test ./... -run None -benchmem -bench ." + +[tasks.lint] +description = "Run linting" +depends = ["fmt"] +sources = ["**/*.go", ".golangci.yml"] +run = ["golangci-lint run --fix", "typos"] + +[tasks.doc] +description = "Render the pkg docs locally" +run = "pkgsite -open" + +[tasks.cov] +description = "Calculate test coverage and render the html" +outputs = ["{{ vars.COV_DATA }}"] +run = [ + "go test -race -cover -covermode atomic -coverprofile {{ vars.COV_DATA }} ./...", + "go tool cover -html {{ vars.COV_DATA }}", +] + +[tasks.check] +description = "Run tests and linting in one" +depends = ["test", "lint"] + +[tasks.sloc] +description = "Print lines of code" +run = "fd . -e go | xargs wc -l | sort -nr | head" + +[tasks.clean] +description = "Remove build artifacts and other clutter" +run = ["go clean ./...", "rm -rf {{ vars.COV_DATA }} ./bin ./dist"] + +[tasks.update] +description = "Updates dependencies in go.mod and go.sum" +run = ["go get -u ./...", "go mod tidy"] -- knotmirror 0.0.1