Skip to content

Commit

Permalink
fix: Fix Cargo running in the wrong directory. (#890)
Browse files Browse the repository at this point in the history
* Update code.

* Bump version.
  • Loading branch information
milesj authored Jun 5, 2023
1 parent 76fd0aa commit 5141d9b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .yarn/versions/fdaa96bc.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
4 changes: 2 additions & 2 deletions crates/rust/platform/src/rust_platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ impl Platform for RustPlatform {
// PROJECT GRAPH

fn is_project_in_dependency_workspace(&self, _project: &Project) -> Result<bool, MoonError> {
// Always assume Cargo is running from the root
Ok(true)
// moon requires a Rust project to be the root of the Cargo workspace
Ok(false)
}

fn load_project_graph_aliases(
Expand Down
7 changes: 7 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## Unreleased

#### 🐞 Fixes

- Rust
- Fixed an issue where `cargo generate-lockfile` would run in the wrong directory.

## 1.7.1

#### 🐞 Fixes
Expand Down

0 comments on commit 5141d9b

Please sign in to comment.