reaper47 / recipya

A clean, simple and powerful recipe manager your whole family will enjoy.
https://recipes.musicavis.ca
GNU General Public License v3.0
147 stars 10 forks source link

release folder needs a go.mod #360

Closed gedw99 closed 2 weeks ago

gedw99 commented 2 weeks ago

I am working on some features that I will PR...

The releases folder needs a go.mod. Otherwise it will not build.

It maybe that you have it already locally, but if you are using go.work its needed.

go mod init main
module main

go 1.22.0
reaper47 commented 2 weeks ago

How are you building the project for it not to work? To build, you run task build from the root directory where the Taskfile.yaml is. I will need to reproduce the error before merging this.

Edit: The releases folder is used for when I create a new GitHub release, i.e. v1.1.0 and the upcoming v1.2.0.

gedw99 commented 2 weeks ago

It’s not working because i am using a mono repo where a go.work file is used to seperate each repo.

In these cases the Golang compiler requires that each main folder has a go.mod file.

gedw99 commented 2 weeks ago

The change will not break others that don’t use a go.work.