Closed pavelkornev closed 1 year ago
@pavelkornev https://github.com/stoplightio/spectral/pull/2501 will fix it
@P0lip thank you! Is it possible to release today? or when is the next planned release?
:tada: This issue has been resolved in version 1.18.2 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:
Describe the bug Spectral returns different set of messages depending on the transitive dependency version @stoplight/json.
To Reproduce
npm ci
npm start
:npm ls @stoplight/json
(v3.20.3 is used everywhere):node_modules
:rm -rf node_modules
(!important)package-lock.json
:rm package-lock.json
npm install
npm ls @stoplight/json
(now NPM resolves some deps to the new version, some to the old):npm start
Now we have 2 messages for the same problem instead of 1 as before.
Please note, that the usage of different versions of @stoplight/json at the same time by different packages is not the root issue here. I have enforced all packages to use the latest v3.21.0 and I have the same outcome — 2 messages instead of 1. So, the root cause is most likely related to this PR — https://github.com/stoplightio/json/pull/122.
Expected behavior Spectral must return 1 message as before, not 2.