Merge pull request #79 from jpnurmi/pub-cache-path
Add .pub-cache/bin to PATH
This commit is contained in:
1
dist/index.js
vendored
1
dist/index.js
vendored
@@ -126,6 +126,7 @@ function getFlutter(version, channel) {
|
|||||||
core.exportVariable('FLUTTER_ROOT', toolPath);
|
core.exportVariable('FLUTTER_ROOT', toolPath);
|
||||||
core.addPath(path.join(toolPath, 'bin'));
|
core.addPath(path.join(toolPath, 'bin'));
|
||||||
core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin'));
|
core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin'));
|
||||||
|
core.addPath(path.join(toolPath, '.pub-cache', 'bin'));
|
||||||
if (useMaster) {
|
if (useMaster) {
|
||||||
yield exec.exec('flutter', ['channel', 'master']);
|
yield exec.exec('flutter', ['channel', 'master']);
|
||||||
yield exec.exec('flutter', ['upgrade']);
|
yield exec.exec('flutter', ['upgrade']);
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export async function getFlutter(
|
|||||||
core.exportVariable('FLUTTER_ROOT', toolPath);
|
core.exportVariable('FLUTTER_ROOT', toolPath);
|
||||||
core.addPath(path.join(toolPath, 'bin'));
|
core.addPath(path.join(toolPath, 'bin'));
|
||||||
core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin'));
|
core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin'));
|
||||||
|
core.addPath(path.join(toolPath, '.pub-cache', 'bin'));
|
||||||
|
|
||||||
if (useMaster) {
|
if (useMaster) {
|
||||||
await exec.exec('flutter', ['channel', 'master']);
|
await exec.exec('flutter', ['channel', 'master']);
|
||||||
|
|||||||
Reference in New Issue
Block a user