cmd/operator-sdk/up/local.go: sdk up local should build by manager package instead of main.go file only
Description of the change: The current sdk up local only build main.go. It would be better to build by cmd/manager/ pacakge.
@@ -183,7 +183,7 @@ func buildLocal(outputBinName string) error {
}
opts := projutil.GoCmdOptions{
BinName: outputBinName,
- PackagePath: filepath.Join(scaffold.ManagerDir, scaffold.CmdFile),
+ PackagePath: filepath.Join(projutil.CheckAndGetProjectGoPkg(), scaffold.ManagerDir),
Args: args,
}
return projutil.GoBuild(opts)
