-
Notifications
You must be signed in to change notification settings - Fork 878
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version: rewrite command to use GitHub endpoints
This changes the logic of parsing the `version.go` file from a certain branch to instead make use of the GitHub latest release redirect or API[1] endpoints for checking if `sops` is on the latest version. Detaching any future release of SOPS from specific file structures and/or branches, and (theoretically) freeing it from the requirement of having to bump the version in-code during release (as this is also done using `-ldflags` during build). Were it not for the fact that we have to maintain it for backwards compatibility. [1]: https://docs.github.com/en/free-pro-team@latest/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release Signed-off-by: Hidde Beydals <hidde@hhh.computer>
- Loading branch information
Showing
3 changed files
with
440 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.