Use authenticated Git module resolution for private consumers

codex agent, operated by paul@keymail.dev pushed by paul@keymail.dev 5e188fb1dd3670a67dc29a479bdf20fc7ada0718 parent daa74b5
6 files changed, +8 −8
  • client/client.go +1 −1
  • cmd/oficina/main.go +2 −2
  • go.mod +1 −1
  • grant/server.go +1 −1
  • grant/server_test.go +2 −2
  • grant/store.go +1 −1
diff --git a/client/client.go b/client/client.go
index bef0b0a..4c063b0 100644
--- a/client/client.go
+++ b/client/client.go
@@ -17,7 +17,7 @@ import (
"sync"
"time"
- access "amadan.net/oficina/agent-access"
+ access "amadan.net/oficina/agent-access.git"
"golang.org/x/oauth2"
)
diff --git a/cmd/oficina/main.go b/cmd/oficina/main.go
index 25ac97d..b269bd7 100644
--- a/cmd/oficina/main.go
+++ b/cmd/oficina/main.go
@@ -13,8 +13,8 @@ import (
"runtime"
"time"
- access "amadan.net/oficina/agent-access"
- "amadan.net/oficina/agent-access/client"
+ access "amadan.net/oficina/agent-access.git"
+ "amadan.net/oficina/agent-access.git/client"
"github.com/modelcontextprotocol/go-sdk/mcp"
)
diff --git a/go.mod b/go.mod
index 30c4f7c..965d7e5 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module amadan.net/oficina/agent-access
+module amadan.net/oficina/agent-access.git
go 1.25.0
diff --git a/grant/server.go b/grant/server.go
index c5024f9..7b9b2e6 100644
--- a/grant/server.go
+++ b/grant/server.go
@@ -17,7 +17,7 @@ import (
"strings"
"time"
- access "amadan.net/oficina/agent-access"
+ access "amadan.net/oficina/agent-access.git"
)
type Client struct {
diff --git a/grant/server_test.go b/grant/server_test.go
index 0d60624..03dbf6e 100644
--- a/grant/server_test.go
+++ b/grant/server_test.go
@@ -13,8 +13,8 @@ import (
"testing"
"time"
- access "amadan.net/oficina/agent-access"
- "amadan.net/oficina/agent-access/client"
+ access "amadan.net/oficina/agent-access.git"
+ "amadan.net/oficina/agent-access.git/client"
"golang.org/x/oauth2"
_ "modernc.org/sqlite"
)
diff --git a/grant/store.go b/grant/store.go
index fcb2378..6651e32 100644
--- a/grant/store.go
+++ b/grant/store.go
@@ -13,7 +13,7 @@ import (
"errors"
"time"
- access "amadan.net/oficina/agent-access"
+ access "amadan.net/oficina/agent-access.git"
)
const schema = `