Skip to content

does not install go-admin #12

@iida-tomonori

Description

@iida-tomonori

Go1.22.5
MySQL8.0.28
Gin

$ adm -V
GoAdmin CLI v1.2.30

$ adm init web
GoAdmin web install program start.
2024/08/01 08:51:50 http: panic serving [::1]:58455: mkdir pages: file exists
goroutine 36 [running]:
net/http.(*conn).serve.func1()
/Users/s22641/.gvm/gos/go1.22.5/src/net/http/server.go:1903 +0xb0
panic({0x100ecc900?, 0x14000375b60?})
/Users/s22641/.gvm/gos/go1.22.5/src/runtime/panic.go:770 +0x124
main.checkError(...)
/Users/s22641/.gvm/pkgsets/go1.22.5/global/pkg/mod/github.com/!go!admin!group/[email protected]/helper.go:30
main.mkdirs(...)
/Users/s22641/.gvm/pkgsets/go1.22.5/global/pkg/mod/github.com/!go!admin!group/[email protected]/helper.go:92
main.installProjectTmpl({{0x1400032457e, 0x2}, {0x14000324548, 0x5}, {0x0, 0x0}, {0x14000324588, 0x5}, {0x14000324571, 0x2}, ...}, ...)
/Users/s22641/.gvm/pkgsets/go1.22.5/global/pkg/mod/github.com/!go!admin!group/[email protected]/project.go:252 +0x11e8
main.buildProjectWeb.func1.3({0x100f6f0e0, 0x140003041c0}, 0x1400017d560)
/Users/s22641/.gvm/pkgsets/go1.22.5/global/pkg/mod/github.com/!go!admin!group/[email protected]/project_web.go:229 +0x1218
net/http.HandlerFunc.ServeHTTP(0x101445570?, {0x100f6f0e0?, 0x140003041c0?}, 0x140002c0b00?)
/Users/s22641/.gvm/gos/go1.22.5/src/net/http/server.go:2171 +0x38
net/http.(*ServeMux).ServeHTTP(0x10?, {0x100f6f0e0, 0x140003041c0}, 0x1400017d560)
/Users/s22641/.gvm/gos/go1.22.5/src/net/http/server.go:2688 +0x1a4
net/http.serverHandler.ServeHTTP({0x100f6cfc0?}, {0x100f6f0e0?, 0x140003041c0?}, 0x6?)
/Users/s22641/.gvm/gos/go1.22.5/src/net/http/server.go:3142 +0xbc
net/http.(*conn).serve(0x14000302120, {0x100f71280, 0x140002289c0})
/Users/s22641/.gvm/gos/go1.22.5/src/net/http/server.go:2044 +0x508
created by net/http.(*Server).Serve in goroutine 2
/Users/s22641/.gvm/gos/go1.22.5/src/net/http/server.go:3290 +0x3f0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions