Add .pub-cache/bin to PATH

This commit is contained in:
J-P Nurmi
2021-03-05 17:08:58 +01:00
parent 5781588262
commit 06a5370154
2 changed files with 2 additions and 0 deletions

1
dist/index.js vendored
View File

@@ -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']);

View File

@@ -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']);