flutter_wrapper
flutter_wrapper copied to clipboard
melos+flutter_wrapper
I use flutter_wrapper, I tried to implement melos to the same project but I have two problems:
- If
pubspec.yamlis not in the root directory CI can not installflutter_wrapper - When I try to install and use melos see more about problem
run ./flutterw pub global activate melos
./flutterw pub global activate melos
shell: /usr/bin/bash -e {0}
env:
JS_SERVICE_ENCOINTER_PATH: lib/js_service_encointer
JS_SERVICE_ENCOINTER_MAIN: lib/js_service_encointer/dist/main.js
Resolving dependencies...
+ ansi_styles 0.[3](https://github.com/encointer/encointer-wallet-flutter/actions/runs/4052337827/jobs/6971651790#step:5:3).2+1
+ args 2.3.2
+ async 2.10.0
+ charcode 1.3.1
+ cli_util 0.3.5
+ collection 1.17.1
+ conventional_commit 0.5.0+1
+ file 6.1.[4](https://github.com/encointer/encointer-wallet-flutter/actions/runs/4052337827/jobs/6971651790#step:5:4)
+ glob 2.1.1
+ graphs 2.2.0
+ http 0.13.[5](https://github.com/encointer/encointer-wallet-flutter/actions/runs/4052337827/jobs/6971651790#step:5:5)
+ http_parser 4.0.2
+ io 1.0.4
+ json_annotation 4.8.0
+ matcher 0.12.14
+ melos 2.9.0
+ meta 1.9.0
+ mustache_template 2.0.0
+ path 1.8.3
+ platform 3.1.0
+ pool 1.5.1
+ process 4.2.4
+ prompts 2.0.0
+ pub_semver 2.1.3
+ pub_updater 0.2.4
+ pubspec 2.3.0
+ quiver 3.2.1
+ source_span 1.9.1
+ stack_trace 1.11.0
+ string_scanner 1.2.0
+ term_glyph 1.2.1
+ typed_data 1.3.1
+ uri 1.0.0
+ yaml 3.1.1
+ yaml_edit 2.0.3
Downloading string_scanner 1.2.0...
Downloading meta 1.9.0...
Downloading path 1.8.3...
Downloading glob 2.1.1...
Downloading file [6](https://github.com/encointer/encointer-wallet-flutter/actions/runs/4052337827/jobs/6971651790#step:5:6).1.4...
Downloading collection 1.1[7](https://github.com/encointer/encointer-wallet-flutter/actions/runs/4052337827/jobs/6971651790#step:5:8).1...
Downloading source_span 1.9.1...
Downloading matcher 0.12.14...
Downloading stack_trace 1.11.0...
Downloading json_annotation 4.[8](https://github.com/encointer/encointer-wallet-flutter/actions/runs/4052337827/jobs/6971651790#step:5:9).0...
Downloading async 2.10.0...
Building package executables...
Built melos:melos.
Installed executable melos.
Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path.
Activated melos 2.[9](https://github.com/encointer/encointer-wallet-flutter/actions/runs/4052337827/jobs/6971651790#step:5:10).0.
You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.):
export PATH="$PATH":"$HOME/.pub-cache/bin"
run melos format
melos format-check
shell: /usr/bin/bash -e {0}
env:
JS_SERVICE_ENCOINTER_PATH: lib/js_service_encointer
JS_SERVICE_ENCOINTER_MAIN: lib/js_service_encointer/dist/main.js
/home/runner/work/_temp/d1e5d6[3](https://github.com/encointer/encointer-wallet-flutter/actions/runs/4052337827/jobs/6971651790#step:6:3)c-[4](https://github.com/encointer/encointer-wallet-flutter/actions/runs/4052337827/jobs/6971651790#step:6:4)f82-4b33-832c-b99f404[6](https://github.com/encointer/encointer-wallet-flutter/actions/runs/4052337827/jobs/6971651790#step:6:6)6208.sh: line 1: melos: command not found
Error: Process completed with exit code 12[7](https://github.com/encointer/encointer-wallet-flutter/actions/runs/4052337827/jobs/6971651790#step:6:8).
It has nothing to do with flutterw or melos. You're missing adding pub global activated packages to your path.
Before executing melos you have to execute export PATH="$PATH":"$HOME/.pub-cache/bin" as stated in the error.
Or use sidekick instead of melos 😉
Problem solved thank you :)