Melkeydev / go-blueprint

Go-blueprint allows users to spin up a quick Go project using a popular framework
https://docs.go-blueprint.dev/
MIT License
5.49k stars 318 forks source link

[Bug] WSL2 Problem creating files for project. exit status 1 #333

Closed PhiBrandon closed 6 days ago

PhiBrandon commented 6 days ago

What is the problem?

When using go-blueprint create and selecting the first option from each menu, I get the errors

2024/11/19 10:42:48 Could not install go dependency exit status 1
2024/11/19 10:42:48 Problem creating files for project. exit status 1
Error: exit status 1

Operating System

Ubuntu 22.04.3 on WSL2

Architecture Version (x86, x64, arm, etc)

x86_64

Steps to reproduce

go-blueprint create Select

> [x]  Standard-library
 The built-in Go standard library HTTP package

> [x]  Mysql
 MySQL-Driver for Go's database/sql package

> [x]  Commit
 Initialize a new git repository and commit all the changes

Relevant log output

No response

Ujstor commented 6 days ago

Issue is on your side, reinstall go and check if you have git user nad email configured. Check if you have internet conncetion inside WSL, just ping google

image

tree
[4.0K]  ./
├── [4.0K]  cmd/
│   └── [4.0K]  api/
│       └── [1.3K]  main.go
├── [4.0K]  internal/
│   ├── [4.0K]  database/
│   │   ├── [3.6K]  database.go
│   │   └── [1.9K]  database_test.go
│   └── [4.0K]  server/
│       ├── [1.8K]  routes.go
│       ├── [ 739]  routes_test.go
│       └── [ 601]  server.go
├── [ 413]  docker-compose.yml
├── [2.6K]  go.mod
├── [ 18K]  go.sum
├── [1.4K]  Makefile
└── [ 746]  README.md
Ujstor commented 6 days ago

@PhiBrandon What was the issue?

PhiBrandon commented 6 days ago

It seems it was in fact my Go installation.