From 23330f08612df974061eddb1d57af48a2712c5fc Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 25 Jul 2026 09:37:30 -0500 Subject: [PATCH] fix: regenerate protobuf descriptor to fix slice bounds panic --- README.md | 4 ++-- agent.go | 2 +- agent_test.go | 2 +- checks.go | 2 +- checks_test.go | 2 +- docker-compose.example.yml | 2 +- go.mod | 2 +- lldp.go | 2 +- mikrotik.go | 2 +- pb/agent.pb.go | 2 +- proto/agent.proto | 2 +- snmp.go | 2 +- snmp_test.go | 2 +- ssh.go | 2 +- ssh_test.go | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 9553585..a181d6c 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ The Towerops agent enables customers to deploy SNMP polling infrastructure on th Pull the latest image from Codeberg's container registry: ```bash -docker pull codeberg.org/towerops-agent/towerops-agent:latest +docker pull git.mcintire.me/towerops-agent/towerops-agent:latest ``` ### Using Docker Compose @@ -36,7 +36,7 @@ version: '3.8' services: towerops-agent: - image: codeberg.org/towerops-agent/towerops-agent:latest + image: git.mcintire.me/towerops-agent/towerops-agent:latest restart: unless-stopped environment: - TOWEROPS_AGENT_TOKEN=your-agent-token-here diff --git a/agent.go b/agent.go index 67fe945..22eee65 100644 --- a/agent.go +++ b/agent.go @@ -15,7 +15,7 @@ import ( "sync/atomic" "time" - "codeberg.org/towerops-agent/towerops-agent/pb" + "git.mcintire.me/towerops-agent/towerops-agent/pb" "google.golang.org/protobuf/proto" ) diff --git a/agent_test.go b/agent_test.go index bd1d603..15b645d 100644 --- a/agent_test.go +++ b/agent_test.go @@ -15,7 +15,7 @@ import ( "time" "github.com/gosnmp/gosnmp" - "codeberg.org/towerops-agent/towerops-agent/pb" + "git.mcintire.me/towerops-agent/towerops-agent/pb" "google.golang.org/protobuf/proto" ) diff --git a/checks.go b/checks.go index 0935134..74fdc6b 100644 --- a/checks.go +++ b/checks.go @@ -14,7 +14,7 @@ import ( "sync" "time" - "codeberg.org/towerops-agent/towerops-agent/pb" + "git.mcintire.me/towerops-agent/towerops-agent/pb" ) var ( diff --git a/checks_test.go b/checks_test.go index 1e2e7ee..54a9be1 100644 --- a/checks_test.go +++ b/checks_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "codeberg.org/towerops-agent/towerops-agent/pb" + "git.mcintire.me/towerops-agent/towerops-agent/pb" ) // --------------------------------------------------------------------------- diff --git a/docker-compose.example.yml b/docker-compose.example.yml index 50ba42d..764408c 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -1,6 +1,6 @@ services: towerops-agent: - image: codeberg.org/towerops-agent/towerops-agent:latest + image: git.mcintire.me/towerops-agent/towerops-agent:latest pull_policy: always container_name: towerops-agent restart: unless-stopped diff --git a/go.mod b/go.mod index 7c81f57..3bbc094 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module codeberg.org/towerops-agent/towerops-agent +module git.mcintire.me/towerops-agent/towerops-agent go 1.25.6 diff --git a/lldp.go b/lldp.go index 1a324ae..ccbbc3a 100644 --- a/lldp.go +++ b/lldp.go @@ -10,7 +10,7 @@ import ( "time" "github.com/gosnmp/gosnmp" - "codeberg.org/towerops-agent/towerops-agent/pb" + "git.mcintire.me/towerops-agent/towerops-agent/pb" ) // LLDP-MIB OIDs (IEEE 802.1AB) diff --git a/mikrotik.go b/mikrotik.go index 609c279..686b865 100644 --- a/mikrotik.go +++ b/mikrotik.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "codeberg.org/towerops-agent/towerops-agent/pb" + "git.mcintire.me/towerops-agent/towerops-agent/pb" ) const ( diff --git a/pb/agent.pb.go b/pb/agent.pb.go index e9943fc..aeadfae 100644 --- a/pb/agent.pb.go +++ b/pb/agent.pb.go @@ -2993,7 +2993,7 @@ const file_proto_agent_proto_rawDesc = "" + "\rLLDP_TOPOLOGY\x10\x05*\x1e\n" + "\tQueryType\x12\a\n" + "\x03GET\x10\x00\x12\b\n" + - "\x04WALK\x10\x01B/Z-codeberg.org/towerops-agent/towerops-agent/pbb\x06proto3" + "\x04WALK\x10\x01B2Z0git.mcintire.me/towerops-agent/towerops-agent/pbb\x06proto3" var ( file_proto_agent_proto_rawDescOnce sync.Once diff --git a/proto/agent.proto b/proto/agent.proto index c7cb68e..47d6562 100644 --- a/proto/agent.proto +++ b/proto/agent.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package towerops.agent; -option go_package = "codeberg.org/towerops-agent/towerops-agent/pb"; +option go_package = "git.mcintire.me/towerops-agent/towerops-agent/pb"; // Configuration received from the API message AgentConfig { diff --git a/snmp.go b/snmp.go index a842e34..afed76d 100644 --- a/snmp.go +++ b/snmp.go @@ -11,7 +11,7 @@ import ( "unicode/utf8" "github.com/gosnmp/gosnmp" - "codeberg.org/towerops-agent/towerops-agent/pb" + "git.mcintire.me/towerops-agent/towerops-agent/pb" ) const snmpMaxOIDsPerGet = 60 diff --git a/snmp_test.go b/snmp_test.go index 3ad7c94..a99ab30 100644 --- a/snmp_test.go +++ b/snmp_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/gosnmp/gosnmp" - "codeberg.org/towerops-agent/towerops-agent/pb" + "git.mcintire.me/towerops-agent/towerops-agent/pb" ) func TestSnmpValueToString(t *testing.T) { diff --git a/ssh.go b/ssh.go index 04ef0d0..096065c 100644 --- a/ssh.go +++ b/ssh.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "codeberg.org/towerops-agent/towerops-agent/pb" + "git.mcintire.me/towerops-agent/towerops-agent/pb" "golang.org/x/crypto/ssh" ) diff --git a/ssh_test.go b/ssh_test.go index 455f900..aee9739 100644 --- a/ssh_test.go +++ b/ssh_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "codeberg.org/towerops-agent/towerops-agent/pb" + "git.mcintire.me/towerops-agent/towerops-agent/pb" "golang.org/x/crypto/ssh" )