From 1078c7f4be63c6eb2e0eacafbf82249e6dc7a639 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 18 Oct 2026 00:38:40 +0530 Subject: [PATCH] chore: publish Go module as github.com/priompt/proto The placeholder module path becomes the public one so dependents can require a tagged version instead of a replace directive. Co-Authored-By: Claude Opus 5.5 --- README.md | 10 +++++----- gen/priompt/v1/prompt.pb.go | 4 ++-- go.mod | 2 +- proto/priompt/v1/prompt.proto | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6b8dcb1..282d15f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ So the shared things live here, and there is exactly one of each: ```mermaid flowchart TD - subgraph This["📖 This repo (module priomptproto)"] + subgraph This["📖 This repo (module github.com/priompt/proto)"] P["proto/priompt/v1/prompt.proto
the PromptService contract"] G["gen/
generated Go stubs"] C["claims/
JWT claims contract"] @@ -77,10 +77,10 @@ The honest fine print: fork. - **python-sdk commits its generated stubs** so the wheel ships them; they are artifacts of this repo's `.proto`, regenerated by `buf generate` there. -- **The Go module is `priomptproto`** — a placeholder path until first - release. Sibling repos point at it with a `replace` directive - (`replace priomptproto => ../proto`); at publish time the path becomes the - real one and the replaces drop. +- **The Go module is `github.com/priompt/proto`**, versioned by `v*` tags. + Dependents require a tagged version. To change it alongside a dependent + repo, use a `go.work` in the parent directory + (`go work init ./proto ./priompt`) instead of a `replace`. ## Relation to the other repos diff --git a/gen/priompt/v1/prompt.pb.go b/gen/priompt/v1/prompt.pb.go index 2792df4..fcfa7b9 100644 --- a/gen/priompt/v1/prompt.pb.go +++ b/gen/priompt/v1/prompt.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.11 +// protoc-gen-go v1.36.12 // protoc (unknown) // source: priompt/v1/prompt.proto @@ -1365,7 +1365,7 @@ const file_priompt_v1_prompt_proto_rawDesc = "" + "\vMergeBranch\x12\x1e.priompt.v1.MergeBranchRequest\x1a\x1f.priompt.v1.MergeBranchResponse\x12M\n" + "\vDiffCommits\x12\x1e.priompt.v1.DiffCommitsRequest\x1a\x1e.priompt.v1.DiffPromptResponse\x12H\n" + "\tSetBranch\x12\x1c.priompt.v1.SetBranchRequest\x1a\x1d.priompt.v1.SetBranchResponse\x12N\n" + - "\vListPrompts\x12\x1e.priompt.v1.ListPromptsRequest\x1a\x1f.priompt.v1.ListPromptsResponseB'Z%priomptproto/gen/priompt/v1;priomptv1b\x06proto3" + "\vListPrompts\x12\x1e.priompt.v1.ListPromptsRequest\x1a\x1f.priompt.v1.ListPromptsResponseB3Z1github.com/priompt/proto/gen/priompt/v1;priomptv1b\x06proto3" var ( file_priompt_v1_prompt_proto_rawDescOnce sync.Once diff --git a/go.mod b/go.mod index 6a77fbf..7373602 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module priomptproto +module github.com/priompt/proto go 1.25.0 diff --git a/proto/priompt/v1/prompt.proto b/proto/priompt/v1/prompt.proto index 76f5b2d..5c06201 100644 --- a/proto/priompt/v1/prompt.proto +++ b/proto/priompt/v1/prompt.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package priompt.v1; -option go_package = "priomptproto/gen/priompt/v1;priomptv1"; +option go_package = "github.com/priompt/proto/gen/priompt/v1;priomptv1"; // PromptService serves validated prompts. Phase 1 is read-only over the wire; // writes happen via the `priompt put` CLI until promptctl lands (Phase 3).