We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 225a070 commit 195be3dCopy full SHA for 195be3d
src/tool_cache.rs
@@ -121,15 +121,12 @@ impl ToolCache {
121
let mut output = BufWriter::new(File::create(&tool_path).unwrap());
122
io::copy(&mut file, &mut output).unwrap();
123
124
- // On Unix systems, we need to preserve permissions from the archive
125
- // like executability.
+ // On Unix systems, mark the tool as executable.
126
#[cfg(unix)]
127
{
128
use std::os::unix::fs::PermissionsExt;
129
130
- if let Some(mode) = file.unix_mode() {
131
- fs::set_permissions(&tool_path, fs::Permissions::from_mode(mode)).unwrap();
132
- }
+ fs::set_permissions(&tool_path, fs::Permissions::from_mode(0o777)).unwrap();
133
}
134
135
log::trace!("Updating tool cache");
0 commit comments