From b87e4fa0555ccfd1907b202916d8e7753e7d2511 Mon Sep 17 00:00:00 2001 From: jupblb Date: Thu, 14 May 2026 12:57:07 +0200 Subject: [PATCH 1/2] Migrate buf.gen.yaml from v1 to v2 syntax v2 replaces 'name:' (with optional 'path:' override) by a single 'local:' key that points at the plugin binary directly. The generated output is byte-identical to the v1 invocation because the same binaries are still on PATH from flake.nix's proto-generate runtimeInputs. This is a no-op refactor that lets future plugin additions use v2-only features (protoc_builtin, remote, etc.). --- buf.gen.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/buf.gen.yaml b/buf.gen.yaml index 59803072..07bc9500 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,21 +1,19 @@ # Configuration file for https://buf.build/, which we use for Protobuf code generation. -version: v1 +version: v2 plugins: - - name: doc + - local: protoc-gen-doc out: ./docs/ opt: docs/scip.sprig,scip.md # NOTE: the sprig file is a template, it is not generated. - - name: go + - local: protoc-gen-go out: ./bindings/go/scip/ opt: - paths=source_relative - - name: es + - local: protoc-gen-es out: ./bindings/typescript/ opt: - target=ts - - name: rust - path: protoc-gen-rs + - local: protoc-gen-rs out: ./bindings/rust/src/generated/ - - name: haskell - path: proto-lens-protoc + - local: proto-lens-protoc out: ./bindings/haskell/src From 702a8825d5dd4bc46016b3f582569dfc3c8668ec Mon Sep 17 00:00:00 2001 From: jupblb Date: Thu, 14 May 2026 12:57:50 +0200 Subject: [PATCH 2/2] Fix stale .gitattributes entries - bindings/typescript/scip.ts was renamed to scip_pb.ts in commit 8f65a66 (typescript: migrate protobuf bindings from protoc-gen-ts to protobuf-es). - yarn.lock no longer exists anywhere in the repo; the project moved to npm (bindings/typescript/package-lock.json) in 84019f3 / 8f65a66. Both entries were matching nothing, so GitHub's linguist was still counting the renamed/removed files as hand-written code in the language breakdown. --- .gitattributes | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index a187d025..8c68105d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,5 @@ -bindings/typescript/scip.ts linguist-generated=true +bindings/typescript/scip_pb.ts linguist-generated=true bindings/go/scip/scip.pb.go linguist-generated=true bindings/rust/src/generated/scip.rs linguist-generated=true bindings/haskell/src/Proto/**.hs linguist-generated=true docs/scip.md linguist-generated=true -yarn.lock linguist-generated=true