File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ array-init = "2.1"
101
101
arrow2 = " 0.17"
102
102
arrow2_convert = " 0.5.0"
103
103
async-executor = " 1.0"
104
+ atty = " 0.2"
104
105
backtrace = " 0.3"
105
106
bincode = " 1.3"
106
107
bitflags = { version = " 2.4" , features = [" bytemuck" ] }
Original file line number Diff line number Diff line change @@ -69,6 +69,16 @@ impl DataSource {
69
69
}
70
70
}
71
71
72
+ // Reading from standard input in non-TTY environments (e.g. Github Actions, but I'm sure we can
73
+ // come up with more convoluted than that ...) can lead to many unexpected,
74
+ // platform-specific problems that aren't even necessarily consistent across runs.
75
+ //
76
+ // In order to avoid having to swallow errors based on unreliable heuristics (or inversely:
77
+ // throwing errors when we shouldn't), we just make reading from standard input explicit.
78
+ if uri == "-" {
79
+ return DataSource :: Stdin ;
80
+ }
81
+
72
82
let path = std:: path:: Path :: new ( & uri) . to_path_buf ( ) ;
73
83
74
84
if uri. starts_with ( "file://" ) || path. exists ( ) {
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ pub mod external {
142
142
pub use anyhow;
143
143
144
144
pub use re_build_info;
145
+ pub use re_data_source;
145
146
pub use re_data_store;
146
147
pub use re_data_store:: external:: * ;
147
148
pub use re_format;
You can’t perform that action at this time.
0 commit comments