From 23fa27d4aa99cc725abeb59911ddbf531d1b5c4d Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Thu, 22 Jan 2026 13:32:46 +0000 Subject: [PATCH] nix: comment out cbor marshaler/unmarshaler before goimport check Signed-off-by: Seongmin Lee --- flake.nix | 3 +++ 1 file(s) changed, 3 insertion(s)(+), 0 deletion(s)(-) diff --git a/flake.nix b/flake.nix --- a/flake.nix +++ b/flake.nix @@ -284,6 +284,9 @@ rm -f api/tangled/* lexgen --build-file lexicon-build-config.json lexicons sed -i.bak 's/\tutil/\/\/\tutil/' api/tangled/* + # lexgen generates incomplete Marshaler/Unmarshaler for union types + find api/tangled/*.go -not -name "cbor_gen.go" -exec \ + sed -i '/^func.*\(MarshalCBOR\|UnmarshalCBOR\)/,/^}/ s/^/\/\/ /' {} + ${pkgs.gotools}/bin/goimports -w api/tangled/* go run ./cmd/cborgen/ lexgen --build-file lexicon-build-config.json lexicons -- tangled.sh