Skip to content

Commit

Permalink
Merge pull request vercel#1192 from nathanhammond:globbing-callsite-root
Browse files Browse the repository at this point in the history
Allow traversal from packages.
  • Loading branch information
jaredpalmer authored May 5, 2022
2 parents d9a1f41 + 457f97b commit f05dc67
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/internal/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,12 @@ func (e *execContext) exec(pt *packageTask, deps dag.Set) error {
targetLogger.Debug("caching output", "outputs", outputs)
ignore := []string{}

filesToBeCached, err := globby.GlobFiles(filepath.Join(e.rs.Opts.cwd, pt.pkg.Dir), outputs, ignore)
repoRelativeGlobs := make([]string, len(outputs))
for index, output := range outputs {
repoRelativeGlobs[index] = filepath.Join(pt.pkg.Dir, output)
}

filesToBeCached, err := globby.GlobFiles(e.rs.Opts.cwd, repoRelativeGlobs, ignore)
if err != nil {
return err
}
Expand Down

0 comments on commit f05dc67

Please sign in to comment.