Skip to content

Error: runtime Go version 1.26 does not match history max 1.25 #33

Description

@arkriny

Running mingo results in error:

$ ~/go/bin/mingo
Error: scanning directory: runtime Go version 1.26 does not match history max 1.25 (reading from HistDir "")

go version output:

go version go1.26.1 linux/amd64

go env output:

AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE=''
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/home/skewb1k/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/home/skewb1k/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -pthread -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2900837145=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/home/skewb1k/src/pkgrep/go.mod'
GOMODCACHE='/home/skewb1k/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/skewb1k/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/skewb1k/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/lib/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.26.1'
GOWORK=''
PKG_CONFIG='pkg-config'

From what I can understand, it fails here:

mingo/scan.go

Line 243 in 5833fc3

return fmt.Errorf("runtime Go version 1.%d does not match history max 1.%d (reading from HistDir %q)", minor, s.h.max, s.HistDir)
with expectation to find 'api/go1.26.txt' file, but it seems that the #32 update did not include it. I'm not sure if this file should have been added or if the assertion is incorrect. Maybe there is some issue with my environment.
I'll try to study the tool more thoroughly to understand it better. Thank you for creating it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions