From 06a537015463a4ee29feaf025ef51e601346a459 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Fri, 5 Mar 2021 17:08:58 +0100 Subject: [PATCH] Add .pub-cache/bin to PATH --- dist/index.js | 1 + src/installer.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index b3f4902..457671e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -126,6 +126,7 @@ function getFlutter(version, channel) { core.exportVariable('FLUTTER_ROOT', toolPath); core.addPath(path.join(toolPath, 'bin')); core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin')); + core.addPath(path.join(toolPath, '.pub-cache', 'bin')); if (useMaster) { yield exec.exec('flutter', ['channel', 'master']); yield exec.exec('flutter', ['upgrade']); diff --git a/src/installer.ts b/src/installer.ts index ff3bca8..b3f36f5 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -48,6 +48,7 @@ export async function getFlutter( core.exportVariable('FLUTTER_ROOT', toolPath); core.addPath(path.join(toolPath, 'bin')); core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin')); + core.addPath(path.join(toolPath, '.pub-cache', 'bin')); if (useMaster) { await exec.exec('flutter', ['channel', 'master']);