File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ jobs:
104
104
cd dist
105
105
tar -zxf namespace_package-0.1.0.tar.gz
106
106
cd namespace_package-0.1.0
107
- cargo build --offline --target ${{ matrix.platform.rust-target }}
107
+ cargo build --offline --target ${{ matrix.platform.rust-target }}
108
108
109
109
test-abi3 :
110
110
runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -65,14 +65,17 @@ def get_file_list(self):
65
65
# See https://docs.rs/clap/latest/clap/struct.Arg.html#method.multiple for detail
66
66
command .extend (["--manifest-path" , manifest_paths [0 ], vendor_path ])
67
67
cargo_config = subprocess .check_output (command )
68
- base_dir_bytes = base_dir .encode (sys .getfilesystemencoding ())
69
- cargo_config = cargo_config .replace (base_dir_bytes + os .sep .encode (), b'' )
68
+ base_dir_bytes = base_dir .encode (sys .getfilesystemencoding ()) + os .sep .encode ()
69
+ if os .sep == '\\ ' :
70
+ # TOML escapes backslash \
71
+ base_dir_bytes += os .sep .encode ()
72
+ cargo_config = cargo_config .replace (base_dir_bytes , b'' )
70
73
if os .altsep :
71
74
cargo_config = cargo_config .replace (base_dir_bytes + os .altsep .encode (), b'' )
72
75
73
76
# Check whether `.cargo/config`/`.cargo/config.toml` already exists
74
77
existing_cargo_config = None
75
- for filename in (".cargo/ config" , ".cargo/ config.toml" ):
78
+ for filename in (f ".cargo{ os . sep } config" , f ".cargo{ os . sep } config.toml" ):
76
79
if filename in self .filelist .allfiles :
77
80
existing_cargo_config = filename
78
81
break
You can’t perform that action at this time.
0 commit comments