• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Published plugin version not being picked correctly

Scheduled Pinned Locked Moved NodeBB Development
4 Posts 2 Posters 308 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Dan OchianaD Offline
    Dan OchianaD Offline
    Dan Ochiana
    wrote on last edited by
    #1

    Re: What's happening with package manager?

    @julian seems it's my time to cry about this issue. Context:

    • npm package https://www.npmjs.com/package/nodebb-plugin-customize-groups
    • compatibility: ^1.0.0
    • https://packages.nodebb.org/api/v1/plugins?version=1.13.2 returns 0.1.21
    • https://packages.nodebb.org/api/v1/plugins returns 0.2.2

    https://packages.nodebb.org/api/v1/plugins?version=1.13.2 should return the latest 0.2.2 . What am I doing wrong here?

    Tried to get a hold of the packages.nodebb.org api code but it's nowhere to be found.

    Yelp.

    1 Reply Last reply
    0
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    wrote on last edited by
    #2

    https://packages.nodebb.org/api/v1/suggest?package=nodebb-plugin-customize-groups&version=1.13.2

    https://packages.nodebb.org/api/v1/plugins/nodebb-plugin-customize-groups

    Hm, interesting... let me see if I can figure out what happened here...

    1 Reply Last reply
    0
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    wrote on last edited by julian
    #3

    The code, by the way, is here: https://github.com/NodeBB/nodebb-package-manager

    You'd want to inspect the /suggest endpoint, which determines which version to recommend.

    1 Reply Last reply
    0
  • Dan OchianaD Offline
    Dan OchianaD Offline
    Dan Ochiana
    wrote on last edited by
    #4

    @julian found the issue and created a PR here https://github.com/NodeBB/nodebb-package-manager/pull/22

    Thank you for sharing the repo 🙂

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development