Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 57d252cee4 | |||
| 78030230c5 | |||
| adfb087037 |
@@ -708,7 +708,8 @@ sgard/
|
||||
sgardpb/ # Generated protobuf + gRPC Go code
|
||||
proto/sgard/v1/ # Proto source definitions
|
||||
|
||||
flake.nix # Nix flake (builds sgard + sgardd)
|
||||
VERSION # Semver string, read by flake.nix; synced from latest git tag via `make version`
|
||||
flake.nix # Nix flake (builds sgard + sgardd, version from VERSION file)
|
||||
.goreleaser.yaml # GoReleaser (builds both binaries)
|
||||
```
|
||||
|
||||
|
||||
9
Makefile
9
Makefile
@@ -1,4 +1,6 @@
|
||||
.PHONY: proto build test lint clean
|
||||
VERSION := $(shell git describe --tags --abbrev=0 | sed 's/^v//')
|
||||
|
||||
.PHONY: proto build test lint clean version
|
||||
|
||||
proto:
|
||||
protoc \
|
||||
@@ -7,8 +9,11 @@ proto:
|
||||
-I proto \
|
||||
proto/sgard/v1/sgard.proto
|
||||
|
||||
version:
|
||||
@echo $(VERSION) > VERSION
|
||||
|
||||
build:
|
||||
go build ./...
|
||||
go build -ldflags "-X main.version=$(VERSION)" ./...
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
@@ -112,3 +112,4 @@ Phase 6: Manifest Signing (to be planned).
|
||||
| 2026-03-25 | — | Deploy sgardd to rift: Dockerfile, docker-compose, mc-proxy L4 route on :9443, Metacrypt TLS cert, DNS. |
|
||||
| 2026-03-25 | — | `sgard remote set/show`: persistent remote config in `<repo>/remote.yaml` (addr, tls, tls_ca). |
|
||||
| 2026-03-26 | — | `sgard list` remote support: uses `resolveRemoteConfig()` to list server manifest via `PullManifest` RPC. Client `List()` method added. |
|
||||
| 2026-03-26 | — | Version derived from git tags via `VERSION` file. flake.nix reads `VERSION`; Makefile `version` target syncs from latest tag, `build` injects via ldflags. |
|
||||
|
||||
@@ -11,11 +11,14 @@
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
let
|
||||
version = builtins.replaceStrings [ "\n" ] [ "" ] (builtins.readFile ./VERSION);
|
||||
in
|
||||
{
|
||||
packages = {
|
||||
sgard = pkgs.buildGoModule rec {
|
||||
pname = "sgard";
|
||||
version = "2.1.0";
|
||||
inherit version;
|
||||
src = pkgs.lib.cleanSource ./.;
|
||||
subPackages = [ "cmd/sgard" "cmd/sgardd" ];
|
||||
|
||||
@@ -31,7 +34,7 @@
|
||||
|
||||
sgard-fido2 = pkgs.buildGoModule rec {
|
||||
pname = "sgard-fido2";
|
||||
version = "2.1.0";
|
||||
inherit version;
|
||||
src = pkgs.lib.cleanSource ./.;
|
||||
subPackages = [ "cmd/sgard" "cmd/sgardd" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user