[GH-ISSUE #139] hoarder --version reports version 0.0.0 #113

Closed
opened 2026-03-02 11:46:45 +03:00 by kerem · 1 comment
Owner

Originally created by @skirmess on GitHub (May 5, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/139

The npm CLI reports

$ hoarder --version
0.0.0

but installed version is 0.13.2:

$ more package.json
{
  "dependencies": {
    "@hoarderapp/cli": "^0.13.2"
  }
}
Originally created by @skirmess on GitHub (May 5, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/139 The npm CLI reports ``` $ hoarder --version 0.0.0 ``` but installed version is 0.13.2: ``` $ more package.json { "dependencies": { "@hoarderapp/cli": "^0.13.2" } } ```
kerem 2026-03-02 11:46:45 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@kamtschatka commented on GitHub (May 19, 2024):

So the reason is that the version is taken from process.env.npm_package_version and if that does not exist, it takes 0.0.0.
I guess a replacement step during the build that bakes this version in would make sense? @MohamedBassem?

<!-- gh-comment-id:2119146850 --> @kamtschatka commented on GitHub (May 19, 2024): So the reason is that the version is taken from `process.env.npm_package_version` and if that does not exist, it takes 0.0.0. I guess a replacement step during the build that bakes this version in would make sense? @MohamedBassem?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#113
No description provided.