Skip to content

Commit

Permalink
fix: Minor fixes for 1.14. (#1075)
Browse files Browse the repository at this point in the history
* Fix yarn.

* Fix log.

* Bump version.
  • Loading branch information
milesj authored Sep 27, 2023
1 parent 2c5cc17 commit b40e484
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 12 deletions.
9 changes: 9 additions & 0 deletions .yarn/versions/ff386954.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
releases:
"@moonrepo/cli": patch
"@moonrepo/core-linux-arm64-gnu": patch
"@moonrepo/core-linux-arm64-musl": patch
"@moonrepo/core-linux-x64-gnu": patch
"@moonrepo/core-linux-x64-musl": patch
"@moonrepo/core-macos-arm64": patch
"@moonrepo/core-macos-x64": patch
"@moonrepo/core-windows-x64-msvc": patch
2 changes: 1 addition & 1 deletion crates/core/runner/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ impl<'a> Runner<'a> {
// For long-running process, log a message every 30 seconds to indicate it's still running
let interval_target = self.task.target.clone();
let interval_handle = task::spawn(async move {
if is_persistent {
if is_persistent || is_interactive {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion crates/node/tool/src/pnpm_tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl DependencyManager<NodeTool> for PnpmTool {
) -> miette::Result<()> {
let mut args = vec!["install"];

if is_ci() {
if !self.global && is_ci() {
let lockfile = working_dir.join(self.get_lock_filename());

// Will fail with "Headless installation requires a pnpm-lock.yaml file"
Expand Down
22 changes: 12 additions & 10 deletions crates/node/tool/src/yarn_tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,19 @@ impl DependencyManager<NodeTool> for YarnTool {
) -> miette::Result<()> {
let mut args = vec!["install"];

if !self.is_berry() {
args.push("--ignore-engines");
}
if !self.global {
if !self.is_berry() {
args.push("--ignore-engines");
}

if is_ci() {
if self.is_berry() {
args.push("--immutable");
} else {
args.push("--check-files");
args.push("--frozen-lockfile");
args.push("--non-interactive");
if is_ci() {
if self.is_berry() {
args.push("--immutable");
} else {
args.push("--check-files");
args.push("--frozen-lockfile");
args.push("--non-interactive");
}
}
}

Expand Down
8 changes: 8 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
- More accurately monitors signals (ctrl+c) and shutdowns.
- Tasks can now be configured with a timeout.

## Unreleased

#### 🐞 Fixes

- Fixed an issue when using a global version of npm/pnpm/yarn, and the wrong arguments were being
passed to commands.
- Fixed the "running for 0s" message constantly logging for interactive tasks.

## 1.14.0

#### 🚀 Updates
Expand Down

0 comments on commit b40e484

Please sign in to comment.