diff --git a/obs-staging-bot/Makefile b/obs-staging-bot/Makefile index a3e223d..99b8b0e 100644 --- a/obs-staging-bot/Makefile +++ b/obs-staging-bot/Makefile @@ -10,5 +10,5 @@ generated/client/gitea_api_client.go: api.json api: generated/client/gitea_api_client.go build: api - go build + go build -tags "libsqlite3 linux" diff --git a/obs-staging-bot/go.mod b/obs-staging-bot/go.mod index 5082adb..0f56b33 100644 --- a/obs-staging-bot/go.mod +++ b/obs-staging-bot/go.mod @@ -23,6 +23,7 @@ require ( github.com/google/uuid v1.6.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/mailru/easyjson v0.7.7 // indirect + github.com/mattn/go-sqlite3 v1.14.22 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/oklog/ulid v1.3.1 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect diff --git a/obs-staging-bot/go.sum b/obs-staging-bot/go.sum index 63801ba..53cbf1b 100644 --- a/obs-staging-bot/go.sum +++ b/obs-staging-bot/go.sum @@ -40,6 +40,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= +github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= diff --git a/obs-staging-bot/rabbitmq.go b/obs-staging-bot/rabbitmq.go index a24bd61..578c069 100644 --- a/obs-staging-bot/rabbitmq.go +++ b/obs-staging-bot/rabbitmq.go @@ -7,6 +7,7 @@ import ( "strings" "time" + _ "github.com/mattn/go-sqlite3" rabbitmq "github.com/rabbitmq/amqp091-go" ) @@ -52,6 +53,9 @@ func processObsMessage(msg *rabbitmq.Delivery) { } +func buildHistoryStore() { +} + func startProcessingObsMessages(host, username, password string) { auth := "" if len(username) > 0 && len(password) > 0 {