I have a public kit repo which I pushed v1.0.3 on and has the following structure
go
-database
--database.go
--go.mod
--go.sum
And I require it with
require github.com/michael-ottink/kit/go/database v1.0.3
To test how a kit repo would work. But I get the following error when running go mod tidy
in my main project
github.com/michael-ottink/kit/go/database@v1.0.3: reading github.com/michael-ottink/kit/go/database/go/database/go.mod at revision go/database/v1.0.2: unknown revision go/database/v1.0.3
I am new at this and I am struggeling to understand what the problem is ? If any more info is needed I'll update the post.
this is my database.go
package database
import (
"gorm.io/gorm"
)
type Database struct {
*gorm.DB
}
type Config struct {
Driver string
Host string
Username string
Password string
Port string
Database string
Timezone string
}
This error occurs if you try to require it into a entirely new project with only a go.mod , go.sum and main.go.