File tree Expand file tree Collapse file tree 4 files changed +27
-19
lines changed Expand file tree Collapse file tree 4 files changed +27
-19
lines changed Original file line number Diff line number Diff line change 22// Use of this from code is governed by an MIT-style license that can be
33// found in the LICENSE_MIT file.
44
5- import bytes
5+ import io
66import host.pipe
77import monitor
88import cli show Ui
@@ -181,8 +181,8 @@ class Git:
181181 return run_ args --description = "Git command"
182182
183183 run_ args / List --description -> string :
184- output := bytes .Buffer
185- stdout := bytes .Buffer
184+ output := io .Buffer
185+ stdout := io .Buffer
186186 fork_data := pipe .fork
187187 --environment = git_env_
188188 true // use_path
Original file line number Diff line number Diff line change 1- sdk: ^2.0.0-alpha.79
1+ sdk: ^2.0.0-alpha.144
22prefixes:
33 certificate_roots: toit-cert-roots
44 cli: pkg-cli
@@ -8,20 +8,30 @@ packages:
88 pkg-cli:
99 url: github.com/toitlang/pkg-cli
1010 name: cli
11- version: 1.2.0
12- hash: 0e2adab3ab434c597be60438ccf64008f703ad9c
11+ version: 1.8.0
12+ hash: 73c8aabb60a6f5f304566a1e781d7b025aa17e9b
13+ prefixes:
14+ fs: pkg-fs
15+ host: pkg-host
16+ pkg-fs:
17+ url: github.com/toitlang/pkg-fs
18+ name: fs
19+ version: 2.2.0
20+ hash: 863280c5c62ac259d16d0d3b24df21209b461b14
21+ prefixes:
22+ host: pkg-host
1323 pkg-host:
1424 url: github.com/toitlang/pkg-host
1525 name: host
16- version: 1.9.0
17- hash: 76e4dc5328a5c3739e97f65ed196d05058071359
26+ version: 1.15.1
27+ hash: ff187c2c19d695e66c3dc1d9c09b4dc6bec09088
1828 pkg-http:
1929 url: github.com/toitlang/pkg-http
2030 name: http
21- version: 2.3 .0
22- hash: 05ce2065a75813138d2c4ca1bab03e7a6f0541a2
31+ version: 2.7 .0
32+ hash: ba6a3c73462aa8a3baae47881e9b2349725c22c3
2333 toit-cert-roots:
2434 url: github.com/toitware/toit-cert-roots
2535 name: certificate_roots
26- version: 1.5.0
27- hash: 27a9f9ff3d337b6128e98e220126e3cc275bcd73
36+ version: 1.6.1
37+ hash: 55d3be82ed53d8d332338b2de931865cf69fe48b
Original file line number Diff line number Diff line change 11dependencies :
22 certificate_roots :
33 url : github.com/toitware/toit-cert-roots
4- version : ^1.5.0
4+ version : ^1.6.1
55 cli :
66 url : github.com/toitlang/pkg-cli
7- version : ^1.2 .0
7+ version : ^1.8 .0
88 host :
99 url : github.com/toitlang/pkg-host
10- version : ^1.9.0
10+ version : ^1.15.1
1111 http :
1212 url : github.com/toitlang/pkg-http
13- version : ^2.3 .0
13+ version : ^2.7 .0
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import host.directory
66import host.file
77import host.os
88import host.pipe
9- import writer
109import system show platform PLATFORM_WINDOWS
1110
1211with_tmp_directory [block ]:
@@ -20,8 +19,7 @@ copy_file --from/string --to/string:
2019 in_stream := file .Stream .for_read from
2120 out_stream := file .Stream .for_write to
2221 try:
23- writer := writer .Writer out_stream
24- writer .write_from in_stream
22+ out_stream .out .write_from in_stream .in
2523 // TODO(florian): we would like to close the writer here, but then
2624 // we would get an "already closed" below.
2725 finally:
You can’t perform that action at this time.
0 commit comments