Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lab/internal/cli/plugin_new.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ func runPluginNew(args []string, out, stderr io.Writer) int {
fmt.Fprintf(out, " node -p 'require(\"fs\").realpathSync(process.execPath)'\n")
default:
fmt.Fprintf(out, "Wrote the %s plugin skeleton %s.\nNext, build the server, pin the manifest to it and test it:\n", flags["--kind"], name)
fmt.Fprintf(out, " go -C %s build -o %s .\n", shown, name)
// GOWORK=off and an empty GOFLAGS keep a go.work above the directory
// and the user's GOFLAGS from changing what is built.
for _, line := range scaffold.GoBuildCommand(shown, name) {
fmt.Fprintf(out, " %s\n", line)
}
fmt.Fprintf(out, " forgecell plugin pin %s --server %s/%s\n", shown, shown, name)
fmt.Fprintf(out, " forgecell plugin test %s/%s\n", shown, scaffold.ManifestFile)
}
Expand Down
Loading
Loading