This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rome_cli): Allow to run on read-only file systems
- Loading branch information
1 parent
00f5dfe
commit 09d2ed8
Showing
7 changed files
with
257 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
crates/rome_cli/tests/snapshots/main_commands_check/fs_error_read_only_unix.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
source: crates/rome_cli/tests/snap_test.rs | ||
assertion_line: 334 | ||
expression: content | ||
--- | ||
# Termination Message | ||
|
||
```block | ||
no files were processed in the specified paths. | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
<TEMP_DIR>/rome_test_check_error_read_only/file.js internalError/io ━━━━━━━━━━━━━━━━━━━━ | ||
× Permission denied (os error 13) | ||
``` | ||
|
||
```block | ||
Fixed 0 file(s) in <TIME> | ||
``` | ||
|
||
```block | ||
Skipped 1 file(s) | ||
``` | ||
|
||
|
30 changes: 30 additions & 0 deletions
30
crates/rome_cli/tests/snapshots/main_commands_check/fs_error_read_only_windows.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
source: crates/rome_cli/tests/snap_test.rs | ||
assertion_line: 334 | ||
expression: content | ||
--- | ||
# Termination Message | ||
|
||
```block | ||
no files were processed in the specified paths. | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
<TEMP_DIR>/rome_test_check_error_read_only/file.js internalError/io ━━━━━━━━━━━━━━━━━━━━ | ||
× Access is denied. (os error 5) | ||
``` | ||
|
||
```block | ||
Fixed 0 file(s) in <TIME> | ||
``` | ||
|
||
```block | ||
Skipped 1 file(s) | ||
``` | ||
|
||
|
30 changes: 30 additions & 0 deletions
30
crates/rome_cli/tests/snapshots/main_commands_format/fs_error_read_only_unix.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
source: crates/rome_cli/tests/snap_test.rs | ||
assertion_line: 334 | ||
expression: content | ||
--- | ||
# Termination Message | ||
|
||
```block | ||
no files were processed in the specified paths. | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
<TEMP_DIR>/rome_test_format_error_read_only/file.js internalError/io ━━━━━━━━━━━━━━━━━━━━ | ||
× Permission denied (os error 13) | ||
``` | ||
|
||
```block | ||
Formatted 0 file(s) in <TIME> | ||
``` | ||
|
||
```block | ||
Skipped 1 file(s) | ||
``` | ||
|
||
|
30 changes: 30 additions & 0 deletions
30
crates/rome_cli/tests/snapshots/main_commands_format/fs_error_read_only_windows.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
source: crates/rome_cli/tests/snap_test.rs | ||
assertion_line: 334 | ||
expression: content | ||
--- | ||
# Termination Message | ||
|
||
```block | ||
no files were processed in the specified paths. | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
<TEMP_DIR>/rome_test_format_error_read_only/file.js internalError/io ━━━━━━━━━━━━━━━━━━━━ | ||
× Access is denied. (os error 5) | ||
``` | ||
|
||
```block | ||
Formatted 0 file(s) in <TIME> | ||
``` | ||
|
||
```block | ||
Skipped 1 file(s) | ||
``` | ||
|
||
|