[GH-ISSUE #122] Handling request failures when build number is obtained from GitHub #51

Closed
opened 2026-03-16 12:59:34 +03:00 by kerem · 8 comments
Owner

Originally created by @NBTX on GitHub (Aug 31, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/122

Originally assigned to: @NBTX on GitHub.

Per discussion in #121, this issue is to determine what we should do if we can't get the latest build number from GitHub at build time. The options I can think of are as follows:

  1. Hide the name section in the version information.
  2. Use 'deep clone' on Travis and get the tag from the git history. (Could make builds slower over time but probably wouldn't have that big an impact)
  3. Get it from package.json but make sure the value in package.json stays up-to-date. (Perhaps use GitHub Actions or something to automatically change it to the version number in GitHub releases?) - Overall this is my preferred option.

/CC: @larouxn @liyasthomas

Originally created by @NBTX on GitHub (Aug 31, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/122 Originally assigned to: @NBTX on GitHub. Per discussion in #121, this issue is to determine what we should do if we can't get the latest build number from GitHub at build time. The options I can think of are as follows: 1. Hide the name section in the version information. 2. Use 'deep clone' on Travis and get the tag from the git history. (Could make builds slower over time but probably wouldn't have that big an impact) 3. Get it from `package.json` but make sure the value in `package.json` stays up-to-date. (Perhaps use GitHub Actions or something to automatically change it to the version number in GitHub releases?) - Overall this is my preferred option. /CC: @larouxn @liyasthomas
kerem 2026-03-16 12:59:34 +03:00
Author
Owner

@liyasthomas commented on GitHub (Aug 31, 2019):

I vote for updating version number from package.json
This seems the correct way to handle this, it also helps in tags as well.

Lets hear from @larouxn as well

<!-- gh-comment-id:526789232 --> @liyasthomas commented on GitHub (Aug 31, 2019): I vote for updating version number from package.json This seems the correct way to handle this, it also helps in tags as well. Lets hear from @larouxn as well
Author
Owner

@NBTX commented on GitHub (Aug 31, 2019):

Actually funny thing, I decided 2 was my favorite option but then I came up with 3 because I wanted to put 3 things instead of 2 lol.
So thinking about it, I also prefer 3.

<!-- gh-comment-id:526789288 --> @NBTX commented on GitHub (Aug 31, 2019): Actually funny thing, I decided 2 was my favorite option but then I came up with 3 because I wanted to put 3 things instead of 2 lol. So thinking about it, I also prefer 3.
Author
Owner

@larouxn commented on GitHub (Aug 31, 2019):

We should keep package.json version up to date anyway. So, if a solution for build numbers also ensures that, then that's a double win. 🙌

<!-- gh-comment-id:526789370 --> @larouxn commented on GitHub (Aug 31, 2019): We _should_ keep package.json version up to date anyway. So, if a solution for build numbers _also_ ensures that, then that's a double win. 🙌
Author
Owner

@NBTX commented on GitHub (Aug 31, 2019):

Exactly! ^
Guess I'll get working on 3 then haha

<!-- gh-comment-id:526789415 --> @NBTX commented on GitHub (Aug 31, 2019): Exactly! ^ Guess I'll get working on 3 then haha
Author
Owner

@liyasthomas commented on GitHub (Sep 15, 2019):

@NBTX this issue seems to be absolute. Would you mind closing it?

<!-- gh-comment-id:531567632 --> @liyasthomas commented on GitHub (Sep 15, 2019): @NBTX this issue seems to be absolute. Would you mind closing it?
Author
Owner

@NBTX commented on GitHub (Sep 29, 2019):

@liyasthomas absolute?

<!-- gh-comment-id:536300128 --> @NBTX commented on GitHub (Sep 29, 2019): @liyasthomas absolute?
Author
Owner

@liyasthomas commented on GitHub (Sep 29, 2019):

Sorry. Oftentimes, version number is still fetched from package.json causing version tag without "v" before the tag. This issue is persisting.

<!-- gh-comment-id:536301150 --> @liyasthomas commented on GitHub (Sep 29, 2019): Sorry. Oftentimes, version number is still fetched from `package.json` causing version tag without "v" before the tag. This issue is persisting.
Author
Owner

@liyasthomas commented on GitHub (Nov 5, 2019):

Now the version number is correctly fetching from package.json and release tag, so I think I should this issue.

<!-- gh-comment-id:549849709 --> @liyasthomas commented on GitHub (Nov 5, 2019): Now the version number is correctly fetching from package.json and release tag, so I think I should this issue.
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/hoppscotch#51
No description provided.