Yarn isn't pulling in latest lbry-redux changes #1382

Closed
opened 2018-04-24 17:13:13 +02:00 by neb-b · 9 comments
neb-b commented 2018-04-24 17:13:13 +02:00 (Migrated from github.com)

The Issue

Sometimes the yarn command isn't pulling in the latest lbry-redux changes. I've had to clear everything out and then use npm i to get it to work. Pretty sure it's something with yarn's global cache

Steps to Reproduce

  1. run yarn
  2. merge a PR into lbry-redux
  3. run yarn again
  4. see that it isn't up to date

Expected Behaviour

It should pull the latest files

## The Issue Sometimes the `yarn` command isn't pulling in the latest `lbry-redux` changes. I've had to clear everything out and then use `npm i` to get it to work. Pretty sure it's something with `yarn`'s global cache ### Steps to Reproduce 1. run `yarn` 2. merge a PR into `lbry-redux` 3. run `yarn` again 4. see that it isn't up to date ### Expected Behaviour It should pull the latest files
btzr-io commented 2018-04-25 03:06:23 +02:00 (Migrated from github.com)
rm -r node_modules && yarn cache clean && yarn
``` Shell rm -r node_modules && yarn cache clean && yarn ```
neb-b commented 2018-04-25 05:15:59 +02:00 (Migrated from github.com)

Nice. We should probably just add this as a script. Maybe clean?

Nice. We should probably just add this as a script. Maybe `clean`?
btzr-io commented 2018-04-25 08:08:49 +02:00 (Migrated from github.com)

install:clean ?
I'm not good with names 🙃

`install:clean` ? I'm not good with names :upside_down_face:
tzarebczan commented 2018-04-25 17:20:02 +02:00 (Migrated from github.com)

Windows would be: del node_modules && yarn cache clean && yarn

Windows would be: del node_modules && yarn cache clean && yarn
IGassmann commented 2018-04-25 22:40:30 +02:00 (Migrated from github.com)
More information here https://github.com/yarnpkg/yarn/issues/4722
btzr-io commented 2018-04-25 22:54:26 +02:00 (Migrated from github.com)

⚠️ If yarn is installing the wrong versions of any dependencies, run the following:

$yarn cache clean
$yarn

☝️ add the --pure-lockfile argument to yarn to ensure you install all dependencies exactly as specified in the current yarn.lock file.

paratii-portal/README.md#installing

> :warning: If yarn is installing the wrong versions of any dependencies, run the following: ``` $yarn cache clean $yarn ``` > :point_up: add the --pure-lockfile argument to yarn to ensure you install all dependencies exactly as specified in the current yarn.lock file. [paratii-portal/README.md#installing](https://github.com/Paratii-Video/paratii-portal/blob/edeaa072e98850969bb1747f448944b57e7bd784/README.md#installing)
tzarebczan commented 2018-05-01 00:00:54 +02:00 (Migrated from github.com)

@seanyesmunt should we leave this open until we can find out a more automated process to run the commands? Or open a new issue for that?

@seanyesmunt should we leave this open until we can find out a more automated process to run the commands? Or open a new issue for that?
neb-b commented 2018-05-01 04:06:53 +02:00 (Migrated from github.com)

Lets just keep this one open

Lets just keep this one open
neb-b commented 2018-07-09 17:49:19 +02:00 (Migrated from github.com)

Closing this. We now clear the yarn cache for lbry-redux on every install.

Closing this. We now clear the yarn cache for `lbry-redux` on every install.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#1382
No description provided.