copyMounts creates a copy of the original slice to allow for modification and not altering the original
(in []Mount)
| 126 | |
| 127 | // copyMounts creates a copy of the original slice to allow for modification and not altering the original |
| 128 | func copyMounts(in []Mount) []Mount { |
| 129 | out := make([]Mount, len(in)) |
| 130 | copy(out, in) |
| 131 | return out |
| 132 | } |
| 133 | |
| 134 | // WithReadonlyTempMount mounts the provided mounts to a temp dir as readonly, |
| 135 | // and pass the temp dir to f. The mounts are valid during the call to the f. |
no outgoing calls
searching dependent graphs…