selfprivacy-graphql-api: use tags pinning and switch to fetchFromGitea (instead of fetchGit) #1

Closed
opened 2023-07-14 23:15:00 +03:00 by alexoundos · 0 comments
Collaborator

Currently, version upgrade consists of 2 actions:

  1. update git commit hash
  2. update version

One can forget to update version or specify a wrong one.
The common nixpkgs way is to use git tags for pinning in conjunction with sha256 checksum for the downloaded contents. Or not to specify numeric version, but some "git" label, indicating non-release/non-monotonous version.

builtins.fetchGit suits better private repositories (as it uses your local git with credentials). In our case fetchFromGitea should suffice.

Currently, [version](https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo/src/commit/1ac54cdc5072b81e7d426450e480105aa9b71701/pkgs/selfprivacy-graphql-api/default.nix#L29) upgrade consists of 2 actions: 1. update git commit hash 2. update version One can forget to update version or specify a wrong one. The common nixpkgs way is to use git tags for pinning in conjunction with sha256 checksum for the downloaded contents. Or not to specify numeric version, but some "git" label, indicating non-release/non-monotonous version. `builtins.fetchGit` suits better private repositories (as it uses your local `git` with credentials). In our case [`fetchFromGitea`](https://nixos.org/manual/nixpkgs/stable/#fetchfromgitea) should suffice.
inex closed this issue 2024-02-01 18:05:04 +02:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
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: SelfPrivacy/selfprivacy-nix-repo#1
There is no content yet.