Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: open ... no such file or directory #28

Open
MParvin opened this issue Nov 12, 2022 · 1 comment
Open

panic: open ... no such file or directory #28

MParvin opened this issue Nov 12, 2022 · 1 comment

Comments

@MParvin
Copy link

MParvin commented Nov 12, 2022

When I run the command "git-scaffold init go-memorize" I get the following error:

panic: open /go/src/github.com/dcu/gin-scaffold/template/data/main.go.tmpl: no such file or directory

goroutine 1 [running]:
github.com/dcu/gin-scaffold/template.LoadTemplateFromFile({0xc00007c1c0?, 0x4be710?})
	/go/pkg/mod/github.com/dcu/[email protected]/template/loader.go:18 +0x72
github.com/dcu/gin-scaffold/template.(*Builder).Template(0xc000052300)
	/go/pkg/mod/github.com/dcu/[email protected]/template/builder.go:103 +0x2d
github.com/dcu/gin-scaffold/template.(*Builder).Write(0xc00007a140?, {0x594028, 0xc0000126d0}, {0x5426c0, 0xc000070140})
	/go/pkg/mod/github.com/dcu/[email protected]/template/builder.go:110 +0x2d
github.com/dcu/gin-scaffold/template.(*Builder).WriteToPath(0xc000043da8?, {0xc00007a140, 0x1e}, {0x5426c0, 0xc000070140})
	/go/pkg/mod/github.com/dcu/[email protected]/template/builder.go:130 +0x11f
github.com/dcu/gin-scaffold/command.(*InitCommand).installFile(0xc000070140, {0x0, 0x0}, {0x557329?, 0x0?}, {0xc0000185b0, 0xe})
	/go/pkg/mod/github.com/dcu/[email protected]/command/init_command.go:90 +0xd9
github.com/dcu/gin-scaffold/command.(*InitCommand).Execute(0xc000070140, {0xc0000141a0?, 0x7ffdc3fdaeda?, 0x4?})
	/go/pkg/mod/github.com/dcu/[email protected]/command/init_command.go:72 +0x308
main.main()
	/go/pkg/mod/github.com/dcu/[email protected]/gin-scaffold.go:61 +0x196

I tried this on the following systems:

  • Ubuntu 22.04 LTS (go version go1.19.3 linux/amd64)
  • CentOS 7.9.2009 (go version go1.17.12 linux/amd64)
  • Docker image golang:1.19.3-alpine
@shinriyo
Copy link
Collaborator

Sorry for replying.
Can you put your Dockerfile and docker-compose.yml?

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

No branches or pull requests

2 participants