-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
"yarn upgrade" of tagged dependency fails with "expected manifest" #4731
Comments
Having
I found that yarn is looking for the manifest of |
Hi @kaylieEB, there's seems to be many opportunities for improvement in |
I can confirm that this happens in yarn 1.2.1 but it doesn't in 1.1.0 |
@tomasAlabes thanks for filing the issue! I think you're right dist-tags can be better handled since we currently only really support |
This is an interesting issue.The behavior for tag names in package.json seems... not well defined. NPM5 actually leaves the tag in place during install, but replaces them with the actual semver version when you upgrade:
Attempting to reproduce it with Yarn, I actually get the same behavior with 1.2.1:
|
@rally25rs I can confirm this behavior in yarn 1.2.1, however I run into a problem described in the issue in the following situation:
I have the same behavior with the |
As far as I could debug the issue, I found that the patterns used by the https://github.com/yarnpkg/yarn/blob/master/src/package-resolver.js#L379 don't contain the manifest of For example, patterns map:
And the |
The issue still exists 2 years after the inception, current Yarn version is |
|
Any update on this issue? |
We tried using `development` tag to always point to the latest development package, but that was causing `An unexpected error occurred: "expected manifest".` error when running `yarn upgrade @threshold-network/solidity-contracts`. So we're going back to using the version range. We may use `development` tag in the future, once we figure out the reason behind the error that we were getting. It is possible that the error was related to this issue: yarnpkg/yarn#4731.
…ncy-range Use range in the t-network solidity-contracts dependency We tried using development tag to always point to the latest development package, but that was causing An unexpected error occurred: "expected manifest". error when running yarn upgrade `@threshold-network/solidity-contracts`. So we're going back to using the version range. We may use development tag in the future, once we figure out the reason behind the error that we were getting. It is possible that the error was related to this issue: yarnpkg/yarn#4731
We tried using development tag to always point to the latest development package, but that was causing An unexpected error occurred: "expected manifest". error when running yarn upgrade `@threshold-network/solidity-contracts`. So we're going back to using the version range. We may use development tag in the future, once we figure out the reason behind the error that we were getting. It is possible that the error was related to this issue: yarnpkg/yarn#4731
Use range in the t-network solidity-contracts dependency We tried using development tag to always point to the latest development package, but that was causing An unexpected error occurred: "expected manifest". error when running yarn upgrade @threshold-network/solidity-contracts. So we're going back to using the version range. We may use development tag in the future, once we figure out the reason behind the error that we were getting. It is possible that the error was related to this issue: yarnpkg/yarn#4731 See #2985 for ECDSA part.
We tried using `development` tag to always point to the latest development package, but that was causing `An unexpected error occurred: "expected manifest".` error when running `yarn upgrade @threshold-network/solidity-contracts`. So we're going back to using the version range. We may use `development` tag in the future, once we figure out the reason behind the error that we were getting. It is possible that the error was related to this issue: yarnpkg/yarn#4731.
We tried using `development` tag to always point to the latest development package, but that was causing `An unexpected error occurred: "expected manifest".` error when running `yarn upgrade ...` command. So we're going back to using the version range. We may use `development` tag in the future, once we figure out the reason behind the error that we were getting. It is possible that the error was related to this issue: yarnpkg/yarn#4731.
We provide explicit version of the `keep-core` package, because using `goerli` tag results in `expected manifest` error - probably caused by bug in Yarn: yarnpkg/yarn#4731. We don't plan to publish new `@keep-network/keep-core` anytime soon, so this should be acceptable workaround.
We provide explicit version of the `keep-core` package, because using `goerli` tag results in `expected manifest` error - probably caused by bug in Yarn: yarnpkg/yarn#4731. We don't plan to publish new `@keep-network/keep-core` anytime soon, so this should be acceptable workaround.
We provide explicit version of the `keep-core` package, because using `goerli` tag results in `expected manifest` error - probably caused by bug in Yarn: yarnpkg/yarn#4731. We don't plan to publish new `@keep-network/keep-core` anytime soon, so this should be acceptable workaround.
also seeing the same issue on yarn |
We provide explicit version of the `keep-core` package, because using `development` tag results in `expected manifest` error - probably caused by bug in Yarn: yarnpkg/yarn#4731. We don't plan to publish new `@keep-network/keep-core` anytime soon, so this should be an acceptable workaround.
We're introducing two changes that are needed to fix our failing CI jobs: 1. Using SemVer range instead of tag when describing allowed versions of `@keep-network/keep-ecdsa` dependency. Without this change the command ``` yarn upgrade \ @threshold-network/solidity-contracts \ @keep-network/keep-core \ @keep-network/keep-ecdsa \ @keep-network/tbtc \ @keep-network/coverage-pools \ @keep-network/tbtc-v2 \ @keep-network/tbtc-v2.ts \ @keep-network/ecdsa \ @keep-network/random-beacon ``` or just ``` yarn upgrade @keep-network/ecdsa ``` is failing with the `expected manifest` error. Why is this error occuring (and why only there) is unclear, but we suspect this may be related to the bug in Yarn - yarnpkg/yarn#4731. 2. Using resolution (https://classic.yarnpkg.com/en/docs/selective-version-resolutions/) for `@tenderly/hardhat-tenderly` dependency. Without this, the command ``` yarn upgrade \ @threshold-network/solidity-contracts@dapp-development-goerli \ @keep-network/keep-core@1.8.1-goerli.0 \ @keep-network/keep-ecdsa@goerli \ @keep-network/tbtc@goerli \ @keep-network/coverage-pools@goerli \ @keep-network/ecdsa@dapp-development-goerli \ @keep-network/random-beacon@dapp-development-goerli \ @keep-network/tbtc-v2@dapp-development-goerli ``` is failing with the following error: ``` error tslog@4.7.1: The engine "node" is incompatible with this module. Expected version ">=16". Got "14.21.1" ``` We know that such error occurs when one of the dependencies uses `@tenderly/hardhat-tenderly` dependency in versions `>=1.4.x`, as `1.4.0` introduced a dependency to `tslog` module which is incompatible with Node.js v14. We updated our `development` packages to not use `@tenderly/hardhat-tenderly` in versions `>=1.4.x`, but we haven't done that yet for `goerli`/`dapp-development-goerli` packages. This is why we need to force usage of the lower versions using the resolitions functionality.
…eparately Fix failing CI jobs We're introducing two changes that are needed to fix our failing CI jobs: 1. Using SemVer range instead of tag when describing allowed versions of `@keep-network/keep-ecdsa` dependency. Without this change the command ``` yarn upgrade \ @threshold-network/solidity-contracts \ @keep-network/keep-core \ @keep-network/keep-ecdsa \ @keep-network/tbtc \ @keep-network/coverage-pools \ @keep-network/tbtc-v2 \ @keep-network/tbtc-v2.ts \ @keep-network/ecdsa \ @keep-network/random-beacon ``` or just ``` yarn upgrade @keep-network/ecdsa ``` is failing with the `expected manifest` error. Why is this error occuring (and why only there) is unclear, but we suspect this may be related to the bug in Yarn - yarnpkg/yarn#4731. 2. Using resolution (https://classic.yarnpkg.com/en/docs/selective-version-resolutions/) for `@tenderly/hardhat-tenderly` dependency. Without this, the command ``` yarn upgrade \ @threshold-network/solidity-contracts@dapp-development-goerli \ @keep-network/keep-core@1.8.1-goerli.0 \ @keep-network/keep-ecdsa@goerli \ @keep-network/tbtc@goerli \ @keep-network/coverage-pools@goerli \ @keep-network/ecdsa@dapp-development-goerli \ @keep-network/random-beacon@dapp-development-goerli \ @keep-network/tbtc-v2@dapp-development-goerli ``` is failing with the following error: ``` error tslog@4.7.1: The engine "node" is incompatible with this module. Expected version ">=16". Got "14.21.1" ``` We know that such error occurs when one of the dependencies uses `@tenderly/hardhat-tenderly` dependency in versions `>=1.4.x`, as `1.4.0` introduced a dependency to `tslog` module which is incompatible with Node.js v14. We updated our `development` packages to not use `@tenderly/hardhat-tenderly` in versions `>=1.4.x`, but we haven't done that yet for `goerli`/`dapp-development-goerli` packages. This is why we need to force usage of the lower versions using the resolutions functionality.
We provide explicit version of the `keep-core` package, because using `development` tag results in `expected manifest` error - probably caused by bug in Yarn: yarnpkg/yarn#4731. We don't plan to publish new `@keep-network/keep-core` anytime soon, so this should be an acceptable workaround.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
An error running
yarn upgrade myDep
wheremyDep
needs"next"
version.If the current behavior is a bug, please provide the steps to reproduce.
With a
package.json
with:Running
yarn upgrade myDep
when there's a newnext
version ofmyDep
generates this error.What is the expected behavior?
Not throw and error, and either
yarn.lock
, and not thepackage.json
.package.json
to something like1.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
The text was updated successfully, but these errors were encountered: