Skip to content
Open
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
2 changes: 0 additions & 2 deletions experiments/experiments.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ var xList []Experiment

func Parse(dir string) {
config, _ := taskrc.GetConfig(dir)

ParseWithConfig(dir, config)
}

func ParseWithConfig(dir string, config *ast.TaskRC) {
// Read any .env files
readDotEnv(dir)

// Initialize the experiments
GentleForce = New("GENTLE_FORCE", config, 1)
RemoteTaskfiles = New("REMOTE_TASKFILES", config, 1)
Expand Down
4 changes: 2 additions & 2 deletions taskrc/taskrc.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ func GetConfig(dir string) (*ast.TaskRC, error) {
// Find all the nodes from the given directory up to the users home directory
absDir, err := filepath.Abs(dir)
if err != nil {
return nil, err
return config, err
}
entrypoints, err := fsext.SearchAll("", absDir, defaultTaskRCs)
if err != nil {
return nil, err
return config, err
}

// Reverse the entrypoints since we want the child files to override parent ones
Expand Down
Loading