verdaccio: latest tag is incorrect
My reason:
The latest tag listed is wrong for public libraries.
Steps to reproduce:
I noticed this via npm install -s immutable (npm 5). If you use a verdaccio library you get the rc version of immutable and if you use npmjs.org you the true latest tag 3.x
You can also verify this via the urls which at the time of this writing shows: https://registry.npmjs.org/immutable
"_id":"immutable",
"_rev":"301-da1702370f366fb61a98d20142465e0c",
"name":"immutable",
"description":"Immutable Data Collections",
"dist-tags":{
"latest":"3.8.2",
"rc":"4.0.0-rc.9"
},
And my localhost:port/immutable shows:
"name": "immutable",
"_rev": "2322-1093671c0ff912d2",
"dist-tags": {
"latest": "4.0.0-rc.4",
"rc": "4.0.0-rc.9"
},
App Version:
2.6.3. I am not sure if the previous version was correct, but sinopia was also wrong.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (9 by maintainers)
Commits related to this issue
- fix(dist-tag): fix #411 latest tag is incorrect — committed to verdaccio/verdaccio by juanpicado 6 years ago
- fix(dist-tag): fix #411 latest tag is incorrect — committed to verdaccio/verdaccio by juanpicado 6 years ago
Yeah so that’s what’s not working. If
package.jsonspecified{"version":"1.0.0-alpha.1"}, it is still published tolatest. Now I read npm documentation again, and they do say that--tag alphashould be specified in this case. It’s weird that semver’s tag part lives in a different namespace than thedist-tags, but I’m okay with that as it actually gives me more flexibility.You made things more clear. Thank you! 😃
@danielgindi if you provide more detailed info. I’ll be happy to dive into it.