这是indexloc提供的服务,不要输入任何密码
Skip to content

Start splitting the Run command up #752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 17, 2022
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
3 changes: 1 addition & 2 deletions cli/internal/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"sort"
"strings"
"sync"

"github.com/vercel/turborepo/cli/internal/api"
"github.com/vercel/turborepo/cli/internal/backends"
"github.com/vercel/turborepo/cli/internal/config"
Expand All @@ -30,7 +31,6 @@ const GLOBAL_CACHE_KEY = "snozzberries"
type Context struct {
Args []string
PackageInfos map[interface{}]*fs.PackageJSON
ColorCache *ColorCache
PackageNames []string
TopologicalGraph dag.AcyclicGraph
TaskGraph dag.AcyclicGraph
Expand Down Expand Up @@ -89,7 +89,6 @@ func WithTracer(filename string) Option {
func WithGraph(rootpath string, config *config.Config) Option {
return func(c *Context) error {
c.PackageInfos = make(map[interface{}]*fs.PackageJSON)
c.ColorCache = NewColorCache()
c.RootNode = core.ROOT_NODE_NAME
// Need to ALWAYS have a root node, might as well do it now
c.TaskGraph.Add(core.ROOT_NODE_NAME)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package context
package run

import (
"sync"

"github.com/vercel/turborepo/cli/internal/util"

"github.com/fatih/color"
Expand Down
Loading