| 14 Jul 2023 |
@kranzes:matrix.org | { lib
, buildGoModule
, fetchFromGitea
}:
buildGoModule rec {
pname = "gitea-actions-runner";
version = "0.2.3";
src = fetchFromGitea {
domain = "gitea.com";
owner = "gitea";
repo = "act_runner";
rev = "v${version}";
hash = "sha256-RNH/12XV07nWhGnmR4FKJSSK/KnLA76+pKFHTPG8AAk=";
};
vendorHash = "sha256-VS1CIxV0e01h5L1UA4p8R1Z28yLOEZTMxS+gbEaJwKs=";
ldflags = [
"-s"
"-w"
"-X=gitea.com/gitea/act_runner/internal/pkg/ver.version=${summary}"
];
meta = with lib; {
description = "A runner for Gitea based on act";
homepage = "https://gitea.com/gitea/act_runner";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
| 20:49:36 |
@kranzes:matrix.org | summary doesn't exist | 20:49:47 |
@kranzes:matrix.org |  Download image.png | 20:49:51 |
figsoda | ah | 20:49:53 |
figsoda | yeah I didn't implement the entirety of goreleaser templates | 20:50:10 |
@kranzes:matrix.org | also didn't add changelog = "https://gitea.com/gitea/act_runner/releases/tag/v${version}"; for some reason | 20:50:41 |
figsoda | https://gitea.com/gitea/act_runner/src/commit/db662b36906a3aa0bd1211cee64e4ce73288f485/.goreleaser.yaml#L61 | 20:50:45 |
@kranzes:matrix.org | breh | 20:50:54 |
figsoda | it's able to detect things like version and date | 20:51:10 |
@kranzes:matrix.org | I do think finding how to set version is really sick | 20:51:11 |
@kranzes:matrix.org | nice work on that | 20:51:13 |
figsoda |
the git summary, e.g. v1.0.0-10-g34f56g3
| 20:51:58 |
figsoda | ok its the git summary | 20:52:01 |
@kranzes:matrix.org | other than these 2 things and i guess meta.mainProgram looks identical to the one in nixpkgs | 20:52:04 |
figsoda | i think ill just do something like ${src.rev}-00000000 | 20:52:24 |
@kranzes:matrix.org | it should just be $version | 20:52:36 |
@kranzes:matrix.org | all the time | 20:52:43 |
figsoda | well we don't know what people are doing with these templates | 20:53:01 |
figsoda | maybe they are parsing it (why?) | 20:53:06 |
@kranzes:matrix.org | https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/continuous-integration/gitea-actions-runner/default.nix#L23 | 20:53:21 |
@kranzes:matrix.org | that's what we got right now anyway | 20:53:25 |
figsoda | lol | 20:53:30 |
@kranzes:matrix.org | so pretty similar | 20:53:42 |
@kranzes:matrix.org | btw hexa check the PR i just made for this | 20:54:08 |
hexa | no need to ping me here as well | 20:54:21 |
@kranzes:matrix.org | I just saw you were lurking here already lol | 20:54:35 |
figsoda |
It is generated by git describe --dirty --always --tags, the format will be {Tag}-$N-{CommitSHA}
| 20:55:31 |
@kranzes:matrix.org | https://github.com/nix-community/nix-init/issues/184
is this not just another fetcher? | 20:55:55 |
@kranzes:matrix.org | shouldn't this be in nurl? | 20:56:01 |
figsoda | nurl already supports it | 20:56:08 |