Before opening an issue please read this.
Are you reporting a bug or a feature request ?
Description
I think this may be a bug, or just my not understanding how things work. I set Yarn installer to use version 1.9.x for my build server.
On the build server, under the 1.9.4 folder, I see yarn v1.5.1 through v1.10.1
In the build log, I see the following for the Yarn Install task.
NOTE: the Prepended path environment references v1.5.1, then the build ends up using 1.5.1 to build.
Depending if i configure the yarn install with 1.9.x and/or the always download the latest matching version, it'll download v1.10.1 and use that version instead of the 1.9.4. Our build has issues with 1.10.1, so i want to avoid that.
2018-10-05T13:32:30.5636701Z ##[section]Starting: Use Yarn 1.9.x 2018-10-05T13:32:30.5640486Z ============================================================================== 2018-10-05T13:32:30.5640765Z Task : Yarn Tool Installer 2018-10-05T13:32:30.5640893Z Description : Installs a version of Yarn 2018-10-05T13:32:30.5640998Z Version : 2.5.999 2018-10-05T13:32:30.5641098Z Author : Geek Learning 2018-10-05T13:32:30.5641237Z Help : [More Information](https://github.com/geeklearningio/gl-vsts-tasks-yarn/wiki/Yarn) (Version 2.5.999) 2018-10-05T13:32:30.5641371Z ============================================================================== 2018-10-05T13:32:31.7552065Z Found tool in cache: yarn 1.9.4 x64 2018-10-05T13:32:31.7825168Z Prepending PATH environment variable with directory: E:\BuildAgent01\w\_tool\yarn\1.9.4\x64\yarn-v1.5.1\bin 2018-10-05T13:32:31.7929759Z ##[section]Finishing: Use Yarn 1.9.x
The yarn build command has the following log:
`2018-10-05T13:34:11.4572524Z ##[section]Starting: Yarn build
2018-10-05T13:34:11.4576905Z ==============================================================================
2018-10-05T13:34:11.4577072Z Task : Yarn task
2018-10-05T13:34:11.4577177Z Description : Executes Yarn
2018-10-05T13:34:11.4577282Z Version : 2.5.999
2018-10-05T13:34:11.4577404Z Author : Geek Learning
2018-10-05T13:34:11.4577589Z Help : More Information (Version 2.5.999).
Dear Angular and Ember CLI users, please check our known issues
2018-10-05T13:34:11.4577823Z ==============================================================================
2018-10-05T13:34:13.4806315Z [command]C:\Windows\system32\cmd.exe /D /S /C "E:\BuildAgent01\w_tool\yarn\1.9.4\x64\yarn-v1.5.1\bin\yarn.cmd build"
2018-10-05T13:34:13.7372320Z yarn run v1.5.1
2018-10-05T13:34:13.8562164Z $ node scripts/build.js
2018-10-05T13:34:20.9559565Z Creating an optimized production build...
2018-10-05T13:35:09.8951658Z Compiled successfully.`
Expected behavior
The yarn command only installs and runs the intended version, if 1.9.x version is set, it only downloads 1.9.x and only runs 1.9.x in the path.
Reproduction
In order to allow us to quickly reproduce you issue please include a link to a reproduction repository
System information
VSTS or TFS:
Agent:
OS:
Yarn version: 1.9.4
*Yarn version**1.9.4
Node version:
Node version*