+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

chore(ci): resolve main branch ci error #3870

Closed
wants to merge 2 commits into from
Closed
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
18 changes: 11 additions & 7 deletions crates/rome_cli/tests/commands/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,10 @@ fn fs_error_dereferenced_symlink() {

assert_cli_snapshot(SnapshotPayload::new(
module_path!(),
#[cfg(target_family = "unix")]
"fs_error_dereferenced_symlink_unix",
#[cfg(target_os = "linux")]
"fs_error_dereferenced_symlink_linux",
#[cfg(target_os = "macos")]
"fs_error_dereferenced_symlink_macos",
#[cfg(target_os = "windows")]
"fs_error_dereferenced_symlink_windows",
fs,
Expand All @@ -740,11 +742,11 @@ fn fs_error_dereferenced_symlink() {
}

#[test]
fn fs_error_infinite_symlink_exapansion() {
fn fs_error_infinite_symlink_expansion() {
let fs = MemoryFileSystem::default();
let mut console = BufferConsole::default();

let root_path = temp_dir().join("rome_test_infinite_symlink_exapansion");
let root_path = temp_dir().join("rome_test_infinite_symlink_expansion");
let subdir1_path = root_path.join("prefix");
let subdir2_path = root_path.join("foo").join("bar");

Expand Down Expand Up @@ -790,10 +792,12 @@ fn fs_error_infinite_symlink_exapansion() {

assert_cli_snapshot(SnapshotPayload::new(
module_path!(),
#[cfg(target_family = "unix")]
"fs_error_infinite_symlink_exapansion_unix",
#[cfg(target_os = "linux")]
"fs_error_infinite_symlink_expansion_linux",
#[cfg(target_os = "macos")]
"fs_error_infinite_symlink_expansion_macos",
#[cfg(target_os = "windows")]
"fs_error_infinite_symlink_exapansion_windows",
"fs_error_infinite_symlink_expansion_windows",
fs,
console,
result,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
source: crates/rome_cli/tests/snap_test.rs
expression: content
---
# Termination Message

```block
no files were processed in the specified paths.
```

# Emitted Messages

```block
<TEMP_DIR>/rome_test_broken_symlink/broken_symlink internalError/fs ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Dereferenced symlink

i Rome encountered a file system entry that is a broken symbolic link: <TEMP_DIR>/rome_test_broken_symlink/broken_symlink


```

```block
Checked 0 file(s) in <TIME>
```


Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
source: crates/rome_cli/tests/snap_test.rs
expression: content
---
# Termination Message

```block
no files were processed in the specified paths.
```

# Emitted Messages

```block
<TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix internalError/fs ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Infinite symlink expansion

× Rome encountered a file system entry that leads to an infinite symbolic link expansion, causing an infinite cycle: <TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix


```

```block
<TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix internalError/fs ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Infinite symlink expansion

× Rome encountered a file system entry that leads to an infinite symbolic link expansion, causing an infinite cycle: <TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix


```

```block
Checked 0 file(s) in <TIME>
```



Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ no files were processed in the specified paths.
# Emitted Messages

```block
<TEMP_DIR>/rome_test_infinite_symlink_exapansion/prefix internalError/fs ━━━━━━━━━━
<TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix internalError/fs ━━━━━━━━━━

! Infinite symlink expansion

× Rome encountered a file system entry that leads to an infinite symbolic link expansion, causing an infinite cycle: <TEMP_DIR>/rome_test_infinite_symlink_exapansion/prefix
× Rome encountered a file system entry that leads to an infinite symbolic link expansion, causing an infinite cycle: <TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix


```

```block
<TEMP_DIR>/rome_test_infinite_symlink_exapansion/prefix internalError/fs ━━━━━━━━━━
<TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix internalError/fs ━━━━━━━━━━

! Infinite symlink expansion

× Rome encountered a file system entry that leads to an infinite symbolic link expansion, causing an infinite cycle: <TEMP_DIR>/rome_test_infinite_symlink_exapansion/prefix
× Rome encountered a file system entry that leads to an infinite symbolic link expansion, causing an infinite cycle: <TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix


```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ no files were processed in the specified paths.
# Emitted Messages

```block
<TEMP_DIR>/rome_test_infinite_symlink_exapansion/prefix internalError/fs ━━━━━━━━━━
<TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix internalError/fs ━━━━━━━━━━

! Infinite symlink expansion

× Rome encountered a file system entry that leads to an infinite symbolic link expansion, causing an infinite cycle: <TEMP_DIR>/rome_test_infinite_symlink_exapansion/prefix
× Rome encountered a file system entry that leads to an infinite symbolic link expansion, causing an infinite cycle: <TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix


```

```block
<TEMP_DIR>/rome_test_infinite_symlink_exapansion/prefix internalError/fs ━━━━━━━━━━
<TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix internalError/fs ━━━━━━━━━━

! Infinite symlink expansion

× Rome encountered a file system entry that leads to an infinite symbolic link expansion, causing an infinite cycle: <TEMP_DIR>/rome_test_infinite_symlink_exapansion/prefix
× Rome encountered a file system entry that leads to an infinite symbolic link expansion, causing an infinite cycle: <TEMP_DIR>/rome_test_infinite_symlink_expansion/prefix


```
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载