aloisdeniel / vsts-flutter-tasks

Flutter build tasks for Azure DevOps Pipelines/TFS.
https://marketplace.visualstudio.com/items?itemName=aloisdeniel.flutter
105 stars 83 forks source link

Path does not get set after Install #59

Closed flipch closed 3 years ago

flipch commented 4 years ago

As it stands using your FlutterInstall only allows us to use further Flutter(Commands) from your extension and no bash support.

The problem arises when someone has scripts that make use of flutter binary and it's not available there.

E.g. npm post install script which calls 'flutter pub get'

Is it possible to have the path set?

hey24sheep commented 4 years ago

@flipch it already creates a flutter path named "FlutterToolPath". You could use it as "$(FlutterToolPath)/flutter packages get" in your scripts it will work fine.

vanlooverenkoen commented 3 years ago

I think it is ok to have an extra variable that contains the flutter path FlutterToolPath but it should also be added to the PATH variable itself.