Skip to content

[BUG] check update seems to be wrong #37

@WilliamBergamin

Description

@WilliamBergamin

The slack_cli_hooks versions

Python runtime version

OS info

Describe the bug

If the installed package is the latest version, it seem like the check_update script reports this as there being a newer version

Steps to reproduce

  1. pip install slack-cli-hooks
  2. got to a valid project
  3. python3 -m slack_cli_hooks.hooks.check_update | jq .

Expected result

{
  "name": "Slack Bolt",
  "url": "https://api.slack.com/automation/changelog",
  "releases": [
    {
      "name": "slack_cli_hooks",
      "current": "0.0.0",
      "latest": "0.0.0",
      "update": false,
      "breaking": false
    },
    {
      "name": "slack_bolt",
      "current": "1.19.0",
      "latest": "1.18.1",
      "update": false,
      "breaking": false
    },
    {
      "name": "slack_sdk",
      "current": "3.27.1",
      "latest": "3.27.1",
      "update": false,
      "breaking": false
    }
  ]
}

Actual result

{
  "name": "Slack Bolt",
  "url": "https://api.slack.com/automation/changelog",
  "releases": [
    {
      "name": "slack_cli_hooks",
      "current": "0.0.0",
      "latest": "0.0.0",
      "update": true,
      "breaking": false
    },
    {
      "name": "slack_bolt",
      "current": "1.19.0",
      "latest": "1.18.1",
      "update": false,
      "breaking": false
    },
    {
      "name": "slack_sdk",
      "current": "3.27.1",
      "latest": "3.27.1",
      "update": false,
      "breaking": false
    }
  ]
}
└─[$] <git:(main*)> hermes upgrade
   
🛠️  An update from Slack Bolt is available:

    › slack_cli_hooks
      0.0.0 → 0.0.0

   For more information about this update, visit:
   https://api.slack.com/automation/changelog

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-triage-skipauto triage action will skip this issue, keeping it open for a long timebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions