diff --git a/starter/create/create.go b/starter/create/create.go index f3e764e..c35e9a4 100644 --- a/starter/create/create.go +++ b/starter/create/create.go @@ -84,7 +84,6 @@ func (s StarterCreator) Create() { must(os.WriteFile(targetPath, content, 0o644)) log.Printf("StarterCreator.Create: wrote starter main.go to %s", targetPath) - s.copyFile("../go.work.template", "go.work") s.copyFile("../../template.air.toml", ".air.toml") //s.copyGoMod() //s.executeGoModTidy() @@ -216,7 +215,7 @@ func (s StarterCreator) getGoCommand() string { func (s StarterCreator) replaceImports(content []byte) []byte { contentString := string(content) - contentString = strings.ReplaceAll(contentString, "\"ersteller-lib/starter/", fmt.Sprint("\"", s.params.ModuleName, "/")) + contentString = strings.ReplaceAll(contentString, "\"git.gorlug.de/code/ersteller/starter/", fmt.Sprint("\"", s.params.ModuleName, "/")) return []byte(contentString) } diff --git a/starter/go.mod.template b/starter/go.mod.template index abfe15d..6a9aed4 100644 --- a/starter/go.mod.template +++ b/starter/go.mod.template @@ -4,7 +4,7 @@ go 1.25.1 require ( entgo.io/ent v0.14.5 - ersteller-lib v0.0.0 + git.gorlug.de/code/ersteller v0.0.0 github.com/joho/godotenv v1.5.1 maragu.dev/gomponents v1.2.0 ) diff --git a/starter/go.work.template b/starter/go.work.template deleted file mode 100644 index 24fb2d4..0000000 --- a/starter/go.work.template +++ /dev/null @@ -1,6 +0,0 @@ -go 1.25.0 - -use ( - . - ../ersteller-lib -) diff --git a/starter/page/page.go b/starter/page/page.go index 29eacae..14fee38 100644 --- a/starter/page/page.go +++ b/starter/page/page.go @@ -1,8 +1,8 @@ package page import ( - . "ersteller-lib" "fmt" + . "git.gorlug.de/code/ersteller" "time" . "maragu.dev/gomponents"