Skip to content

Commit

Permalink
Manually register error mappings (#279)
Browse files Browse the repository at this point in the history
To remove pulling other versions of dqlite the registration of error
mappings [got moved out](canonical/lxd#14408) of
`lxd/response`.
Therefore we have to set the errors manually.
  • Loading branch information
roosterfish authored Nov 6, 2024
2 parents 1ebca79 + 6adde1b commit 8ac40da
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 557 deletions.
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.7

require (
github.com/canonical/go-dqlite/v3 v3.0.0
github.com/canonical/lxd v0.0.0-20241022112222-538639622c38
github.com/canonical/lxd v0.0.0-20241106103908-9ac2433510c8
github.com/fsnotify/fsnotify v1.8.0
github.com/google/renameio v1.0.1
github.com/gorilla/mux v1.8.1
Expand All @@ -20,7 +20,6 @@ require (
require (
github.com/Rican7/retry v0.3.1 // indirect
github.com/armon/go-proxyproto v0.1.0 // indirect
github.com/canonical/go-dqlite v1.22.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/flosch/pongo2 v0.0.0-20200913210552-0d938eb266f3 // indirect
github.com/fvbommel/sortorder v1.1.0 // indirect
Expand All @@ -37,7 +36,7 @@ require (
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/muhlemmer/gu v0.3.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pkg/sftp v1.13.6 // indirect
github.com/pkg/sftp v1.13.7 // indirect
github.com/pkg/xattr v0.4.10 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
Expand All @@ -46,7 +45,7 @@ require (
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/zitadel/logging v0.6.1 // indirect
github.com/zitadel/oidc/v3 v3.31.0 // indirect
github.com/zitadel/oidc/v3 v3.32.1 // indirect
github.com/zitadel/schema v1.3.0 // indirect
go.opentelemetry.io/otel v1.31.0 // indirect
go.opentelemetry.io/otel/metric v1.31.0 // indirect
Expand Down
Loading

0 comments on commit 8ac40da

Please sign in to comment.