fix(build): scaffold plugins under plugins/<vendor>/<name> (quick-261028-pq8)
- make:plugin writes plugins/<vendor>/<name> with module <app>/plugins/<vendor>/<name>; the package name stays <name> - make:* and the models-leaf check look in summer.yaml, then plugins/<vendor>/<name>, then the older plugins/<name> - summer new puts its starter plugin at plugins/golem15/<name> - refuse a vendor directory that is a legacy plugin module and a second copy of a plugin that already sits in plugins/<name> - help text and docs, with an upgrading note: moving is optional
This commit is contained in:
@@ -141,8 +141,8 @@ func TestNewAppSmoke(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !bytes.Contains(work, []byte("./plugins/demo")) {
|
||||
t.Fatalf("go.work lacks ./plugins/demo:\n%s", work)
|
||||
if !bytes.Contains(work, []byte("./plugins/golem15/demo")) {
|
||||
t.Fatalf("go.work lacks ./plugins/golem15/demo:\n%s", work)
|
||||
}
|
||||
for _, line := range strings.Split(string(work), "\n") {
|
||||
if strings.HasPrefix(strings.TrimSpace(line), "/") {
|
||||
@@ -555,7 +555,7 @@ func TestNewGitFirstCommit(t *testing.T) {
|
||||
}
|
||||
return false
|
||||
}
|
||||
for _, want := range []string{".env.example", ".gitignore", "go.work", "main.go", "plugins.gen.go", "AGENTS.md", "CLAUDE.md", "summer.yaml", "plugins/demo/plugin.go"} {
|
||||
for _, want := range []string{".env.example", ".gitignore", "go.work", "main.go", "plugins.gen.go", "AGENTS.md", "CLAUDE.md", "summer.yaml", "plugins/golem15/demo/plugin.go"} {
|
||||
if !has(want) {
|
||||
t.Errorf("%s is not tracked: %v", want, tracked)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user