Skip to content

"yarn upgrade" of tagged dependency fails with "expected manifest" #4731

@tomasAlabes

Description

@tomasAlabes

Do you want to request a feature or report a bug?

Bug
What is the current behavior?
An error running yarn upgrade myDep where myDep needs "next" version.

error An unexpected error occurred: "expected manifest".
info If you think this is a bug, please open a bug report with the information provided in "/Users/talabes/repositories2/dynamic-process-editor/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/upgrade for documentation about this command.

If the current behavior is a bug, please provide the steps to reproduce.

With a package.json with:

dependencies: {
   "myDep": "next"
}

Running yarn upgrade myDep when there's a new next version of myDep generates this error.

error An unexpected error occurred: "expected manifest".
info If you think this is a bug, please open a bug report with the information provided in "/Users/talabes/repositories2/dynamic-process-editor/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/upgrade for documentation about this command.

What is the expected behavior?
Not throw and error, and either

  • Modify the yarn.lock, and not the package.json.
  • Or modify both, changing the version in the package.json to something like 1.0.0-next.7 (whatever the "next" tag points to).

I personally need the first option, but I don't know what the yarn developers think. I created this issue some time ago: #4632, and there's another that seems similar: #4382, #2788, #2648, #1690, #2154

Also, should yarn upgrade --next work? Or is there a way to upgrade all dependencies tagged with "next" (or any other tag)?

Please mention your node.js, yarn and operating system version.
yarn 1.2.1
node 8.7.0
macos 10.12.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions