File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
- ## 4.0.1-wip
1
+ ## 4.0.1
2
2
3
+ - Use a hash of the working dir to create the unique workspace dir. This
4
+ resolves an issue when file names become too long.
3
5
- Bump the min sdk to 3.0.0.
4
6
5
7
## 4.0.0
Original file line number Diff line number Diff line change 2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
+ import 'dart:convert' ;
5
6
import 'dart:io' ;
6
7
8
+ import 'package:crypto/crypto.dart' ;
7
9
import 'package:path/path.dart' as p;
8
10
9
11
const readyToConnectLog = 'READY TO CONNECT' ;
@@ -42,10 +44,9 @@ var _username = Platform.environment['USER'] ?? '';
42
44
String daemonWorkspace (String workingDirectory) {
43
45
var segments = [Directory .systemTemp.path];
44
46
if (_username.isNotEmpty) segments.add (_username);
45
- segments.add (workingDirectory
46
- .replaceAll ('/' , '_' )
47
- .replaceAll (':' , '_' )
48
- .replaceAll ('\\ ' , '_' ));
47
+ final workingDirHash =
48
+ base64Encode (md5.convert (workingDirectory.codeUnits).bytes);
49
+ segments.add (workingDirHash);
49
50
return p.joinAll (segments);
50
51
}
51
52
Original file line number Diff line number Diff line change 1
1
name : build_daemon
2
- version : 4.0.1-wip
2
+ version : 4.0.1
3
3
description : A daemon for running Dart builds.
4
4
repository : https://github.com/dart-lang/build/tree/master/build_daemon
5
5
@@ -9,6 +9,7 @@ environment:
9
9
dependencies :
10
10
built_collection : ^5.0.0
11
11
built_value : ^8.1.0
12
+ crypto : ^3.0.3
12
13
http_multi_server : ^3.0.0
13
14
logging : ^1.0.0
14
15
path : ^1.8.0
You can’t perform that action at this time.
0 commit comments