Skip to content

Commit 5bd44f2

Browse files
Merge smithy-rs-release-1.x.y into main (#3669)
2 parents cd0f0ba + e8d9673 commit 5bd44f2

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

tools/ci-build/runtime-versioner/Cargo.lock

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/ci-build/runtime-versioner/test-common/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ publish = false
88
camino = "1.1.6"
99
tempfile = "3.8.1"
1010
test_bin = "0.4.0"
11+
whoami = "1.5.1"

tools/ci-build/runtime-versioner/test-common/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ impl TestBase {
3737
.success(),
3838
"untarring the test_base into the temp directory failed"
3939
);
40+
// ensure unpacked file has the current user assigned to the owner,
41+
// otherwise we could get the `fatal: detected dubious ownership in repository` error
42+
let test_repo = Utf8PathBuf::try_from(tmp.path().join("test_base.git")).unwrap();
43+
assert!(
44+
Command::new("chown")
45+
.args(&[&format!("{}", whoami::username()), test_repo.as_str(),])
46+
.current_dir(tmp.path())
47+
.status()
48+
.unwrap()
49+
.success(),
50+
"setting the owner of `test_base.git` to the current user failed"
51+
);
4052
assert!(
4153
Command::new("git")
4254
.args(["clone", "test_base.git"])

0 commit comments

Comments
 (0)