[PR #128] [MERGED] Added version checker on Headscale startup #1273

Closed
opened 2025-12-29 02:29:31 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/128
Author: @juanfont
Created: 9/27/2021
Status: Merged
Merged: 9/27/2021
Merged by: @juanfont

Base: mainHead: version-checker


📝 Commits (3)

  • 2048e9e Added version checker on startup
  • 7c37086 Handle lack of internet
  • a6adcda Added switch to disable the update checks

📊 Changes

5 files changed (+34 additions, -6 deletions)

View changed files

📝 Makefile (+1 -1)
📝 cmd/headscale/cli/version.go (+5 -4)
📝 cmd/headscale/headscale.go (+17 -0)
📝 go.mod (+4 -1)
📝 go.sum (+7 -0)

📄 Description

This small PR just adds an updated version checker on startup.

It uses https://github.com/tcnksm/go-latest to fetch the latest release in GitHub.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/128 **Author:** [@juanfont](https://github.com/juanfont) **Created:** 9/27/2021 **Status:** ✅ Merged **Merged:** 9/27/2021 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `version-checker` --- ### 📝 Commits (3) - [`2048e9e`](https://github.com/juanfont/headscale/commit/2048e9e13686a73d48a653d13d82089cd51d2488) Added version checker on startup - [`7c37086`](https://github.com/juanfont/headscale/commit/7c37086dd68c9a33df43ac681a593fb8827d2b3d) Handle lack of internet - [`a6adcda`](https://github.com/juanfont/headscale/commit/a6adcdafa9d0289338d5e2808a4df5160431c5fc) Added switch to disable the update checks ### 📊 Changes **5 files changed** (+34 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+1 -1) 📝 `cmd/headscale/cli/version.go` (+5 -4) 📝 `cmd/headscale/headscale.go` (+17 -0) 📝 `go.mod` (+4 -1) 📝 `go.sum` (+7 -0) </details> ### 📄 Description This small PR just adds an updated version checker on startup. It uses https://github.com/tcnksm/go-latest to fetch the latest release in GitHub. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 02:29:31 +01:00
adam closed this issue 2025-12-29 02:29:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1273