Skip to content

os/gtime: issue title 修改了go.mod 的module 的名称后,gf gen dao 报错 #4411

@AirGapCode

Description

@AirGapCode

Go version

go version go1.24.4 darwin/arm64

GoFrame version

Welcome to GoFrame! Env Detail: Go Version: go1.24.4 darwin/arm64 GF Version(go.mod): github.com/gogf/gf/contrib/drivers/mysql/[email protected] github.com/gogf/gf/contrib/drivers/pgsql/[email protected] github.com/gogf/gf/contrib/nosql/redis/[email protected] github.com/gogf/gf/[email protected] CLI Detail: Installed At: /Users/fuliang/go/bin/gf Built Go Version: go1.24.4 Built GF Version: v2.9.2 Others Detail: Docs: https://goframe.org Now : 2025-09-02T16:39:34+08:00

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

修改了go.mod 的module 的名称后,执行gf gen dao 报错,修改回原来的module名称后,恢复

What did you see happen?

exception recovered: runtime error: index out of range [1] with length 0

  1. exception recovered: runtime error: index out of range [1] with length 0
    1). go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End.deferwrap1
    /Users/xxx/go/pkg/mod/go.opentelemetry.io/otel/[email protected]/trace/span.go:467
    2). go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End
    /Users/xxx/go/pkg/mod/go.opentelemetry.io/otel/[email protected]/trace/span.go:500

What did you expect to see?

修改回原来的模块名称后,执行gf gen dao正常了

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIt is confirmed a bug, but don't worry, we'll handle it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions