Extras
Extras copied to clipboard
scoop install flutter failing in Github actions
I suspect its the fact that the https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/flutter-dev-setup.ps1 is assuming the c drive is present ???
Or maybe its becuase an environment variable is wrong
github workflow
name: Bootstrap
on:
push:
branches:
- master
jobs:
dep:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: .\win\ci-bootstrap.ps1
shell: powershell
.\win\ci-bootstrap.ps1:
# RUN THIS in powershell
# Check to see if we are currently running "as Administrator"
# See: https://github.com/mvijfschaft/dotfiles/blob/master/install.ps1
# https://github.com/lukesampson/scoop
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
scoop update
# multiple connections for scoop
#scoop install aria2
# extra repo has the other stuff we need
scoop bucket add extras
# git
scoop install git
# which
scoop install which
# make
scoop install make
# openssh
#scoop install openssh
# [environment]::setenvironmentvariable(‘GIT_SSH’, (resolve-path (scoop which ssh)), ‘USER’)
# vscode
#scoop install vscode
# tell vscode where git is:
# which git
# then File > Preferences > Settings, and under User Settings add: "git.path”: “c:\\the\\path\\to\\git”
# restart and then do: code .
# go
# https://github.com/golang/go/wiki/windows-scoop-install-go-cli
# See screen shot for setting up you Environment variables.
scoop install go
# protoc
scoop install protobuf
# glfw
# Do we need it for Windows ?
# If we do: https://github.com/Deide/deide-bucket/blob/master/bucket/glfw.json
# gcc
# needed for golang CGO etc.
scoop install gcc
# dart
# I dont think its needed actually... we see.
#scoop install dart-dev
# flutter
# needs a few things to compile for android
scoop bucket add java
# DOnt use Oracles Java !
scoop install adoptopenjdk-hotspot
# its fat but it gets us everything we need
scoop install android-studio
# https://github.com/lukesampson/scoop-extras/blob/master/bucket/flutter.json
# then calls: https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/flutter-dev-setup.ps1
scoop install flutter
OUTPUT:
Installing 'flutter' (1.5.4-hotfix.2) [64bit]
2019-11-10T12:24:48.8792151Z Downloading https://storage.googleapis.com/flutter_infra/releases/stable/windows/flutter_windows_v1.5.4-hotfix.2-stable.zip (470.2 MB)...
2019-11-10T12:24:56.1521673Z Checking hash of flutter_windows_v1.5.4-hotfix.2-stable.zip ... ok.
2019-11-10T12:24:56.3211774Z Downloading https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/flutter-dev-setup.ps1 (5.3 KB)...
2019-11-10T12:24:56.3313449Z Checking hash of flutter-dev-setup.ps1 ... ok.
2019-11-10T12:26:54.9054956Z Extracting flutter_windows_v1.5.4-hotfix.2-stable.zip ... done.
2019-11-10T12:26:55.2129509Z Linking ~\scoop\apps\flutter\current => ~\scoop\apps\flutter\1.5.4-hotfix.2
2019-11-10T12:26:55.2349219Z Creating shim for 'flutter'.
2019-11-10T12:26:55.2438609Z Creating shim for 'flutter-dev-setup'.
2019-11-10T12:26:55.2693099Z Running post-install script...
2019-11-10T12:27:08.3686627Z sdkmanager.bat : Warning: File C:\Users\runneradmin\.android\repositories.cfg could not be loaded.
2019-11-10T12:27:08.3687008Z At C:\Users\runneradmin\scoop\apps\flutter\current\flutter-dev-setup.ps1:105 char:11
2019-11-10T12:27:08.3687157Z + $sdkout = sdkmanager.bat --list
2019-11-10T12:27:08.3693338Z + ~~~~~~~~~~~~~~~~~~~~~
2019-11-10T12:27:08.3693492Z + CategoryInfo : NotSpecified: (Warning: File C... not be loaded.:String) [], RemoteException
2019-11-10T12:27:08.3693636Z + FullyQualifiedErrorId : NativeCommandError
2019-11-10T12:27:08.3693737Z
2019-11-10T12:27:08.4538330Z ##[error]Process completed with exit code 1.
2019-11-10T12:27:08.4762860Z Cleaning up orphan processes
FULL output:
https://github.com/winwisely99/bootstrap/commit/ec909991ca77c6a972074580045677a50e7e0078/checks?check_suite_id=303928553
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I made some changes to this manifest based on the official documentation and it now no longer forces a specific JAVA, extras/android-sdk
dependency. DETAILED: #11109
For Android developers, it is recommended to install main/android-clt
instead of extras/android-sdk
.