这是indexloc提供的服务,不要输入任何密码
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
15 changes: 8 additions & 7 deletions cli/internal/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,7 @@ func (c *RunCommand) Run(args []string) int {

// Cache ---------------------------------------------
var hit bool
if runOptions.forceExecution {
hit = false
} else {
if !runOptions.forceExecution {
hit, _, err = turboCache.Fetch(pack.Dir, hash, nil)
if err != nil {
targetUi.Error(fmt.Sprintf("error fetching from cache: %s", err))
Expand All @@ -461,10 +459,13 @@ func (c *RunCommand) Run(args []string) int {

return nil
}
}

if runOptions.stream {
targetUi.Output(fmt.Sprintf("cache miss, executing %s", ui.Dim(hash)))
if runOptions.stream {
targetUi.Output(fmt.Sprintf("cache miss, executing %s", ui.Dim(hash)))
}
} else {
if runOptions.stream {
targetUi.Output(fmt.Sprintf("cache bypass, force executing %s", ui.Dim(hash)))
}
}

// Setup command execution
Expand Down
15 changes: 10 additions & 5 deletions cli/npm/turbo-install/bin/turbo
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

const { generateBinPath } = require("../node-platform");

require("child_process").execFileSync(
generateBinPath(),
process.argv.slice(2),
{ stdio: "inherit" }
);
try {
require("child_process").execFileSync(
generateBinPath(),
process.argv.slice(2),
{ stdio: "inherit" }
);
} catch(e) {
if(e && e.status) process.exit(e.status);
throw e;
}
2 changes: 1 addition & 1 deletion docs/pages/docs/acknowledgments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ Additionally, we're grateful to:

- [Rick Button](https://twitter.com/rickbutton) for donating the `turbo` package name on NPM
- [Iheanyi Ekechukwu](https://twitter.com/kwuchu) for helping Jared pick up Golang during the Pandemic!
- [Kenneth Chau](https://twitter.com/kennethchau) for Lage's Scope and Pipeline API and docs
- [Kenneth Chau](https://twitter.com/kenneth_chau) for Lage's Scope and Pipeline API and docs
- [Miguel Oller](https://mobile.twitter.com/ollermi) and [MakeSwift.com](https://makeswift.com) for piloting Turbo
- [Eric Koslow](https://twitter.com/ekosz1), [Jack Hanford](https://twitter.com/jackhanford), and [Lattice.com](https://lattice.com) for piloting Turbo