File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -236,9 +236,7 @@ def add_file_or_directory_volume(
236236 """Append volume a file/dir mapping to the runtime option list."""
237237 if not volume .resolved .startswith ("_:" ):
238238 _check_docker_machine_path (volume .resolved )
239- self .append_volume (
240- runtime , volume .resolved , volume .target , writable = volume .staged
241- )
239+ self .append_volume (runtime , volume .resolved , volume .target , writable = volume .staged )
242240
243241 def add_writable_file_volume (
244242 self ,
Original file line number Diff line number Diff line change @@ -98,15 +98,8 @@ def relink_initialworkdir(
9898 # directory, so therefore ineligable for being an output file.
9999 # Thus, none of our business
100100 continue
101- host_outdir_tgt = os .path .join (
102- host_outdir , vol .target [len (container_outdir ) + 1 :]
103- )
104- mode = (
105- os .stat (host_outdir_tgt ).st_mode
106- | stat .S_IWUSR
107- | stat .S_IWGRP
108- | stat .S_IWOTH
109- )
101+ host_outdir_tgt = os .path .join (host_outdir , vol .target [len (container_outdir ) + 1 :])
102+ mode = os .stat (host_outdir_tgt ).st_mode | stat .S_IWUSR | stat .S_IWGRP | stat .S_IWOTH
110103 mode = 0o664 # Doesn't work for my code
111104 mode = 0o777 # works for my code
112105 if os .path .islink (host_outdir_tgt ) or os .path .isfile (host_outdir_tgt ):
You can’t perform that action at this time.
0 commit comments