This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,26 @@ echo Fetch Dart channel: $CHANNEL
7
7
8
8
DART_SDK_ZIP=dartsdk-linux-x64-release.zip
9
9
10
- echo http://storage.googleapis.com/dart-archive/channels/$CHANNEL /release/latest/sdk/$DART_SDK_ZIP
11
- curl -L http://storage.googleapis.com/dart-archive/channels/$CHANNEL /release/latest/sdk/$DART_SDK_ZIP > $DART_SDK_ZIP
10
+ # TODO(chirayu): Remove this once issue 1350 is fixed.
11
+ SVN_REVISION=latest
12
+ if [[ " $CHANNEL " == " dev" ]]; then
13
+ issue_1350_state=$( curl ' https://api.github.com/repos/angular/angular.dart/issues/1020' | python -c \
14
+ ' import sys, json; print(json.loads(sys.stdin.read())["state"])' )
15
+ if [[ " $issue_1350_state " == " open" ]]; then
16
+ # Is there a newer dev SDK?
17
+ latest_version=$( curl ' https://storage.googleapis.com/dart-archive/channels/dev/release/latest/VERSION' | python -c \
18
+ ' import sys, json; print(json.loads(sys.stdin.read())["version"])' )
19
+ if [[ " $latest_version " == " 1.6.0-dev.8.0" ]]; then
20
+ # Use prior working version (1.6.0-dev.7.0)
21
+ SVN_REVISION=38831
22
+ fi
23
+ fi
24
+ fi
25
+
26
+ URL=https://storage.googleapis.com/dart-archive/channels/$CHANNEL /release/$SVN_REVISION /sdk/$DART_SDK_ZIP
27
+ echo $URL
28
+ curl -L -O $URL
29
+
12
30
echo Fetched new dart version $( unzip -p $DART_SDK_ZIP dart-sdk/version)
13
31
rm -rf dart-sdk
14
32
unzip $DART_SDK_ZIP > /dev/null
You can’t perform that action at this time.
0 commit comments