Remove more ersteller-lib refrences
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user