New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Yarn to v1.6 #21954
Upgrade Yarn to v1.6 #21954
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@@ -1,23 +0,0 @@ | |||
#!/usr/bin/env bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL |
@@ -76,6 +79,10 @@ jobs: | |||
command: | | |||
bundle check --path=/home/circleci/project/vendor/bundle || bundle install --deployment --path=/home/circleci/project/vendor/bundle --jobs=4 --retry=3 --without '' | |||
|
|||
- run: | |||
name: set yarn version | |||
command: sudo apt-get install yarn=1.6.0-1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we set this up in our docker image instead of installing it every time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Looks like we'd change that here:
code-dot-org/.circleci/Dockerfile
Lines 23 to 25 in 6f36db9
# add yarn | |
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list |
But I potentially need @wjordan to push the updated image to Docker hub?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed in person. I'm going to go ahead and merge this with the install in the Circle config (takes about 4s) and expect follow-up work to move our docker image someplace with shared ownership, at which time we can move this up to the image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this ever happen?
follow-up work to move our docker image someplace with shared ownership
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect it did - the yarn version is set in the dockerfile here:
yarn=1.6.0-1 \ |
@uponthesun may know more about where our image lives / how to update it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I'm not very familiar with the circle config
Upgrades our Yarn dependency from v0.23.2 to v1.6.0.
We last did this about a year ago. This change will require developers to update their local yarn version, probably by following the appropriate steps in
SETUP.md
again. I just ran the following to update: