[FOLIO-826] stripes build fails for yarn 1.0.1 on Debian Jessie Created: 07/Sep/17 Updated: 12/Nov/18 Resolved: 07/Sep/17 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | Continuous Integration |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Bug | Priority: | P1 |
| Reporter: | Wayne Schneider | Assignee: | Wayne Schneider |
| Resolution: | Done | Votes: | 0 |
| Labels: | ci, sprint22 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 2 hours | ||
| Original estimate: | Not Specified | ||
| Sprint: |
| Description |
root@jessie:/etc/folio/stripes# yarn install yarn install v1.0.1 warning package.json: No license field info No lockfile found. warning No license field [1/4] Resolving packages... error Couldn't find package "@folio/trivial" on the "npm" registry. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. After downgrade to yarn 0.27.5, install works fine. |
| Comments |
| Comment by Wayne Schneider [ 07/Sep/17 ] |
|
Basically, all CI builds will fail with the latest yarn, from what we can tell, unless there's a lockfile telling yarn where to find the packages? |
| Comment by Wayne Schneider [ 07/Sep/17 ] |
|
It appears that setting @folio:registry no longer works for yarn, though it does work for npm. Possible solutions:
Other thoughts? Jason Skomorowski – do you have any ideas? |
| Comment by Wayne Schneider [ 07/Sep/17 ] |
|
Jason Skomorowski found this: You now need a trailing slash at the end of the repo. |
| Comment by Mike Taylor [ 07/Sep/17 ] |
|
Oh, yeah. Nice improvement, yarn people. Silently ignoring repositories that don't end with a slash is definitely the way to go. |
| Comment by Wayne Schneider [ 07/Sep/17 ] |
|
Fixed in https://github.com/folio-org/stripes-demo-platform/commit/f8fed68d17c72b021a6c92ebe74fc173a7ea0433 and https://github.com/folio-org/folio-ansible/commit/0057690425171943d232c955c6eb40a3d7234d96 |