Canary release publishing is not setting correct canary version on @redwoodjs dependencies
See original GitHub issueCanary releases are successfully being published for all packages. However, some @redwoodjs
packages are not being installed at the canary release version. Instead, they are at the current stable release 0.19.2
.
Reproducing the Issue
- run
yarn rw upgrade -t canary
in a Redwood project - inspecting
package.json
in each of the main installed packages (e.g.node_modules/@redwoodjs
forcore
,api
,auth
,forms
,router
, andweb
) shows the correct canary version for the package as well as for each@redwoodjs
dependency - however, the
package.json
shows v0.19.2 for the installed packagescli
,dev-server
,eslint-config
,eslint-plugin-redwood
,internal
,structure
,testing
Diagnosis
yarn.lock
is showing some funky versions.
@redwoodjs/core
is correct:
"@redwoodjs/core@^0.19.2-canary.45":
version "0.19.2-canary.45"
...
@redwoodjs/cli
includes the +hash
, which means semver resolves to 0.19.2
:
"@redwoodjs/cli@^0.19.2-canary.45+f354b564":
version "0.19.2"
It’s most likely this started after I released the .2
patch. Which means it might resolve once v0.20.0
is released.
Workaround
For now, the workaround is manually installing the packages at the correct canary version. So after running yarn rw upgrade -t canary
to upgrade to 0.19.2-canary.45
, for example, you’d then need to run:
yarn add -W @redwoodjs/cli@0.19.2-canary.45 @redwoodjs/dev-server@0.19.2-canary.45 @redwoodjs/eslint-config@0.19.2-canary.45 @redwoodjs/eslint-plugin-redwood@0.19.2-canary.45 @redwoodjs/internal@0.19.2-canary.45 @redwoodjs/structure@0.19.2-canary.45 @redwoodjs/testing@0.19.2-canary.45
Yeah, I know… 🤢
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Contributing Walkthrough | RedwoodJS Docs
However, the Redwood Project you created for testing is currently using the latest version (or canary) packages of Redwood published on NPMjs.com, ...
Read more >Redwood v1.0.0-rc.6 is now available - RedwoodJS Community
This release adds preview support for using Yarn v3 with Redwood projects (See #4444). ... npx @redwoodjs/codemods@canary upgrade-yarn.
Read more >Production database is not building - RedwoodJS Community
I'm working on my deployment on netlify, so far I had to fix a couple of ... @redwoodjs/testing@0.12.1-canary.10" has unmet peer dependency ......
Read more >Installation & Starting Development | RedwoodJS Docs
This is unreleased documentation for RedwoodJS Docs Canary version. For up-to-date documentation, see the latest version (3.4).
Read more >Setup for Contributing - RedwoodJS Community
Hi! I'm trying to get Redwood running locally so I can start contributing - but the following happens: The right tab is the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
fwiw, afaict, alternatively placing snippet bellow inside top level’s
package.json
will do the trick for now …^^ Ah, very interesting!
We did resolve this back in October. But good to know as there are still occasional hiccups.