Skip to content

Commit bd48883

Browse files
authored
fix: Audit 06/17 (#2014)
* Fix codegen depth. * Fix option. * Bump version.
1 parent c39eb6d commit bd48883

4 files changed

Lines changed: 21 additions & 2 deletions

File tree

.yarn/versions/741ee010.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
releases:
2+
"@moonrepo/cli": patch
3+
"@moonrepo/core-linux-arm64-gnu": patch
4+
"@moonrepo/core-linux-arm64-musl": patch
5+
"@moonrepo/core-linux-x64-gnu": patch
6+
"@moonrepo/core-linux-x64-musl": patch
7+
"@moonrepo/core-macos-arm64": patch
8+
"@moonrepo/core-macos-x64": patch
9+
"@moonrepo/core-windows-x64-msvc": patch

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
#### 🐞 Fixes
6+
7+
- Fixed an issue where `git://` based code generation couldn't checkout a specific commit.
8+
- Fixed incorrect casing for the `moon migrate --skipTouchedFilesCheck` option.
9+
310
## 1.37.2
411

512
#### 🚀 Updates

crates/app/src/commands/migrate/from_package_json.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ pub struct FromPackageJsonArgs {
1919
#[arg(help = "ID of project to migrate")]
2020
id: Id,
2121

22-
#[arg(long, hide = true)]
22+
#[arg(
23+
long = "skipTouchedFilesCheck",
24+
help = "Skip checking for touched files to determine if the repo is dirty"
25+
)]
2326
pub skip_touched_files_check: bool,
2427
}
2528

crates/codegen/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ async fn clone_and_checkout_git_repository(
349349
);
350350

351351
fs::create_dir_all(&template_location)?;
352-
run_git(&["clone", &url, ".", "--depth", "1"], &template_location).await?;
352+
run_git(&["clone", &url, "."], &template_location).await?;
353353
}
354354

355355
// Checkout the revision

0 commit comments

Comments
 (0)