Skip to content

goversion: parse rc version with trailing suffix - #4255

Merged
derekparker merged 1 commit into
go-delve:masterfrom
alexsaezm:f44_ftbfs
Feb 9, 2026
Merged

derekparker merged 1 commit into
go-delve:masterfrom
alexsaezm:f44_ftbfs

Conversation

@alexsaezm

Copy link
Copy Markdown
Contributor

While updating Delve in Fedora 44, I found out that it is failing due to our currently uncommon Go version output: go version go1.26rc2-X:nodwarf5 linux/amd64.

The problem as I see it is that it fails to identify long release candidate versions with flags.

+ echo '=== Start tests ==='
++ go list ./...
++ grep -v cmd
++ grep -v scripts
+ for d in $(go list ./... | grep -v cmd | grep -v scripts)
+ go test github.com/go-delve/delve/pkg/dwarf -skip TestGuessSubstitutePath
ok  	github.com/go-delve/delve/pkg/dwarf	0.003s
+ for d in $(go list ./... | grep -v cmd | grep -v scripts)
+ go test github.com/go-delve/delve/pkg/dwarf/dwarfbuilder -skip TestGuessSubstitutePath
?   	github.com/go-delve/delve/pkg/dwarf/dwarfbuilder	[no test files]
+ for d in $(go list ./... | grep -v cmd | grep -v scripts)
+ go test github.com/go-delve/delve/pkg/dwarf/frame -skip TestGuessSubstitutePath
ok  	github.com/go-delve/delve/pkg/dwarf/frame	0.003s
+ for d in $(go list ./... | grep -v cmd | grep -v scripts)
+ go test github.com/go-delve/delve/pkg/dwarf/godwarf -skip TestGuessSubstitutePath
ok  	github.com/go-delve/delve/pkg/dwarf/godwarf	0.003s
+ for d in $(go list ./... | grep -v cmd | grep -v scripts)
+ go test github.com/go-delve/delve/pkg/dwarf/leb128 -skip TestGuessSubstitutePath
ok  	github.com/go-delve/delve/pkg/dwarf/leb128	0.003s
+ for d in $(go list ./... | grep -v cmd | grep -v scripts)
+ go test github.com/go-delve/delve/pkg/dwarf/line -skip TestGuessSubstitutePath
--- FAIL: TestDebugLinePrologueParser (0.19s)
    line_parser_test.go:121: Include dirs not parsed correctly
FAIL
FAIL	github.com/go-delve/delve/pkg/dwarf/line	0.421s
FAIL
RPM build errors:

@aarzilli aarzilli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aarzilli

aarzilli commented Feb 7, 2026

Copy link
Copy Markdown
Member

Do you know how you get the version string to be like that? I want to try with a released version, this bug may also exist with non-rc releases.

@alexsaezm

alexsaezm commented Feb 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Do you know how you get the version string to be like that? I want to try with a released version, this bug may also exist with non-rc releases.

In that very specific case, I modified the GOEXPERIMENT inside the go.env file during bootstrapping. Another way could be to edit the VERSION file of a release branch (we do this in RHEL for example).

@derekparker derekparker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

We can fix with a separate patch if this also affects non-rc versions as @aarzilli mentioned.

@derekparker
derekparker merged commit 0b1c520 into go-delve:master Feb 9, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants