Skip to content

Commit

Permalink
refactor(go-libs): Move to dedicated repository (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord authored Sep 20, 2024
1 parent 9353d2f commit b40cc3a
Show file tree
Hide file tree
Showing 748 changed files with 1,352 additions and 11,551 deletions.
5 changes: 0 additions & 5 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,6 @@ HELM_PUBLISH:
RUN helm push ${path} oci://ghcr.io/formancehq/helm
END

INCLUDE_GO_LIBS:
FUNCTION
ARG --required LOCATION
COPY (+sources/out --LOCATION=libs/go-libs) ${LOCATION}

GO_LINT:
FUNCTION
COPY (+sources/out --LOCATION=.golangci.yml) .golangci.yml
Expand Down
1 change: 0 additions & 1 deletion components/fctl/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ deploy-staging:
sources:
WORKDIR src
COPY --pass-args (releases+sdk-generate/go) /src/releases/sdks/go
DO stack+INCLUDE_GO_LIBS --LOCATION libs/go-libs
WORKDIR /src/components/fctl
COPY go.* .
COPY --dir cmd pkg membershipclient .
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/cloud/organizations/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/formancehq/fctl/cmd/cloud/organizations/internal"
"github.com/formancehq/fctl/membershipclient"
fctl "github.com/formancehq/fctl/pkg"
"github.com/formancehq/stack/libs/go-libs/pointer"
"github.com/formancehq/go-libs/pointer"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/ledger/accounts/list.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package accounts

import (
"github.com/formancehq/stack/libs/go-libs/collectionutils"
"github.com/formancehq/go-libs/collectionutils"

"github.com/formancehq/fctl/cmd/ledger/internal"
fctl "github.com/formancehq/fctl/pkg"
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/ledger/accounts/set_metadata.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package accounts

import (
"github.com/formancehq/stack/libs/go-libs/collectionutils"
"github.com/formancehq/go-libs/collectionutils"

"github.com/formancehq/fctl/cmd/ledger/internal"
fctl "github.com/formancehq/fctl/pkg"
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/ledger/accounts/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package accounts
import (
"fmt"

"github.com/formancehq/stack/libs/go-libs/collectionutils"
"github.com/formancehq/go-libs/collectionutils"

internal "github.com/formancehq/fctl/cmd/ledger/internal"
fctl "github.com/formancehq/fctl/pkg"
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/ledger/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
fctl "github.com/formancehq/fctl/pkg"
"github.com/formancehq/formance-sdk-go/v2/pkg/models/operations"
"github.com/formancehq/formance-sdk-go/v2/pkg/models/shared"
"github.com/formancehq/stack/libs/go-libs/pointer"
"github.com/formancehq/go-libs/pointer"
"github.com/pterm/pterm"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/ledger/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

fctl "github.com/formancehq/fctl/pkg"
"github.com/formancehq/formance-sdk-go/v2/pkg/models/operations"
"github.com/formancehq/stack/libs/go-libs/pointer"
"github.com/formancehq/go-libs/pointer"
"github.com/pterm/pterm"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/ledger/internal/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"math/big"
"time"

"github.com/formancehq/stack/libs/go-libs/collectionutils"
"github.com/formancehq/go-libs/collectionutils"

fctl "github.com/formancehq/fctl/pkg"
"github.com/formancehq/formance-sdk-go/v2/pkg/models/shared"
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/ledger/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"math/big"

"github.com/formancehq/stack/libs/go-libs/collectionutils"
"github.com/formancehq/go-libs/collectionutils"

"github.com/formancehq/fctl/cmd/ledger/internal"
fctl "github.com/formancehq/fctl/pkg"
Expand Down
4 changes: 2 additions & 2 deletions components/fctl/cmd/ledger/transactions/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/formancehq/stack/libs/go-libs/collectionutils"
"github.com/formancehq/stack/libs/go-libs/pointer"
"github.com/formancehq/go-libs/collectionutils"
"github.com/formancehq/go-libs/pointer"
"github.com/pkg/errors"

internal "github.com/formancehq/fctl/cmd/ledger/internal"
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/ledger/transactions/num.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/formancehq/stack/libs/go-libs/collectionutils"
"github.com/formancehq/go-libs/collectionutils"

"github.com/formancehq/fctl/cmd/ledger/internal"
fctl "github.com/formancehq/fctl/pkg"
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/ledger/transactions/revert.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package transactions

import (
"github.com/formancehq/stack/libs/go-libs/pointer"
"github.com/formancehq/go-libs/pointer"

"github.com/formancehq/fctl/cmd/ledger/internal"
fctl "github.com/formancehq/fctl/pkg"
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/ledger/transactions/set_metadata.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package transactions

import (
"github.com/formancehq/stack/libs/go-libs/collectionutils"
"github.com/formancehq/go-libs/collectionutils"

"github.com/formancehq/fctl/cmd/ledger/internal"
fctl "github.com/formancehq/fctl/pkg"
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/ledger/volumes/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/formancehq/fctl/pkg/printer"
"github.com/formancehq/formance-sdk-go/v2/pkg/models/operations"
"github.com/formancehq/formance-sdk-go/v2/pkg/models/shared"
"github.com/formancehq/stack/libs/go-libs/collectionutils"
"github.com/formancehq/go-libs/collectionutils"
"github.com/pkg/errors"
"github.com/pterm/pterm"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/orchestration/triggers/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

fctl "github.com/formancehq/fctl/pkg"
"github.com/formancehq/formance-sdk-go/v2/pkg/models/shared"
"github.com/formancehq/stack/libs/go-libs/pointer"
"github.com/formancehq/go-libs/pointer"
"github.com/pkg/errors"
"github.com/pterm/pterm"
"github.com/spf13/cobra"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
fctl "github.com/formancehq/fctl/pkg"
"github.com/formancehq/formance-sdk-go/v2/pkg/models/operations"
"github.com/formancehq/formance-sdk-go/v2/pkg/models/shared"
"github.com/formancehq/stack/libs/go-libs/collectionutils"
"github.com/formancehq/go-libs/collectionutils"
"github.com/pterm/pterm"
"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions components/fctl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"github.com/formancehq/fctl/membershipclient"
fctl "github.com/formancehq/fctl/pkg"
"github.com/formancehq/formance-sdk-go/v2/pkg/models/sdkerrors"
"github.com/formancehq/stack/libs/go-libs/api"
"github.com/formancehq/stack/libs/go-libs/logging"
"github.com/formancehq/go-libs/api"
"github.com/formancehq/go-libs/logging"
"github.com/pterm/pterm"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/stack/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/http"

"github.com/formancehq/stack/libs/go-libs/pointer"
"github.com/formancehq/go-libs/pointer"

"github.com/formancehq/fctl/cmd/stack/internal"
"github.com/formancehq/fctl/cmd/stack/store"
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/stack/modules/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/formancehq/fctl/cmd/stack/store"
"github.com/formancehq/fctl/membershipclient"
fctl "github.com/formancehq/fctl/pkg"
"github.com/formancehq/stack/libs/go-libs/time"
"github.com/formancehq/go-libs/time"
"github.com/pterm/pterm"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/stack/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/formancehq/fctl/cmd/stack/store"
"github.com/formancehq/fctl/membershipclient"
fctl "github.com/formancehq/fctl/pkg"
"github.com/formancehq/stack/libs/go-libs/pointer"
"github.com/formancehq/go-libs/pointer"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/cmd/stack/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/formancehq/fctl/cmd/stack/store"
"github.com/formancehq/fctl/membershipclient"
fctl "github.com/formancehq/fctl/pkg"
"github.com/formancehq/stack/libs/go-libs/pointer"
"github.com/formancehq/go-libs/pointer"
"github.com/pkg/errors"
"github.com/pterm/pterm"
"github.com/spf13/cobra"
Expand Down
4 changes: 1 addition & 3 deletions components/fctl/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/c-bata/go-prompt v0.2.6
github.com/formancehq/fctl/membershipclient v0.0.0-20230109152136-5d4c9193a44c
github.com/formancehq/formance-sdk-go/v2 v2.1.0
github.com/formancehq/stack/libs/go-libs v0.0.0-20240426110706-1d95d58467f6
github.com/formancehq/go-libs v1.5.0
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/iancoleman/strcase v0.3.0
github.com/mattn/go-shellwords v1.0.12
Expand Down Expand Up @@ -73,8 +73,6 @@ require (
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
)

replace github.com/formancehq/stack/libs/go-libs => ../../libs/go-libs

replace github.com/zitadel/oidc/v2 v2.6.1 => github.com/formancehq/oidc/v2 v2.6.2-0.20230526075055-93dc5ecb0149

replace github.com/formancehq/fctl/membershipclient => ./membershipclient
Expand Down
22 changes: 16 additions & 6 deletions components/fctl/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/docker/cli v26.1.4+incompatible h1:I8PHdc0MtxEADqYJZvhBrW9bo8gawKwwenxRM7/rLu8=
github.com/docker/cli v26.1.4+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
github.com/docker/docker v27.1.1+incompatible h1:hO/M4MtV36kzKldqnA37IWhebRA+LnqqcqDja6kVaKY=
github.com/docker/docker v27.1.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/docker v27.2.1+incompatible h1:fQdiLfW7VLscyoeYEBz7/J8soYFDZV1u6VW6gJEjNMI=
github.com/docker/docker v27.2.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c=
github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc=
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
Expand All @@ -86,6 +86,8 @@ github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM=
github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE=
github.com/formancehq/cobra v0.0.0-20240315111924-ca456bf9cac9 h1:y+q436ECR5jNU+CAqK0pPGGM6pKUtvreQ4m/nfaKGQM=
github.com/formancehq/cobra v0.0.0-20240315111924-ca456bf9cac9/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho=
github.com/formancehq/go-libs v1.5.0 h1:jOVET378uquKvQBnSaS8ClLFbk7fB1Lhy4xM0+RK74o=
github.com/formancehq/go-libs v1.5.0/go.mod h1:rnvi4Au1DCNephaBEVzcv64BZEEksXiyKjwo/wHG51Y=
github.com/go-chi/chi/v5 v5.1.0 h1:acVI1TYaD+hhedDJ3r54HyA6sExp3HfXq7QWEEY/xMw=
github.com/go-chi/chi/v5 v5.1.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
Expand All @@ -94,6 +96,8 @@ github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=
github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
Expand All @@ -102,6 +106,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=
github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8 h1:FKHo8hFI3A+7w0aUQuYXQ+6EN5stWmeY/AZqtM8xk9k=
github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo=
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
Expand Down Expand Up @@ -178,12 +184,14 @@ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWb
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
github.com/onsi/ginkgo/v2 v2.20.0 h1:PE84V2mHqoT1sglvHc8ZdQtPcwmvvt29WLEEO3xmdZw=
github.com/onsi/ginkgo/v2 v2.20.0/go.mod h1:lG9ey2Z29hR41WMVthyJBGUBcBhGOtoPF2VFMvBXFCI=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug=
github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM=
github.com/opencontainers/runc v1.1.13 h1:98S2srgG9vw0zWcDpFMn5TRrh8kLxa/5OFUstuUhmRs=
github.com/opencontainers/runc v1.1.13/go.mod h1:R016aXacfp/gwQBYw2FDGa9m+n6atbLWrYY8hNMT/sA=
github.com/opencontainers/runc v1.1.14 h1:rgSuzbmgz5DUJjeSnw337TxDbRuqjs6iqQck/2weR6w=
github.com/opencontainers/runc v1.1.14/go.mod h1:E4C2z+7BxR7GHXp0hAY53mek+x49X1LjPNeMTfRGvOA=
github.com/ory/dockertest/v3 v3.11.0 h1:OiHcxKAvSDUwsEVh2BjxQQc/5EHz9n0va9awCtNGuyA=
github.com/ory/dockertest/v3 v3.11.0/go.mod h1:VIPxS1gwT9NpPOrfD3rACs8Y9Z7yhzO4SB194iUDnUI=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
Expand All @@ -205,8 +213,8 @@ github.com/pterm/pterm v0.12.79/go.mod h1:1v/gzOF1N0FsjbgTHZ1wVycRkKiatFvJSJC4IG
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/rs/cors v1.10.1 h1:L0uuZVXIKlI1SShY2nhFfo44TYvDPQ1w4oFkUJNfhyo=
github.com/rs/cors v1.10.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
github.com/rs/cors v1.11.0 h1:0B9GE/r9Bc2UxRMMtymBkHTenPkHDv0CW4Y98GBY+po=
github.com/rs/cors v1.11.0/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/segmentio/ksuid v1.0.4 h1:sBo2BdShXjmcugAMwjugoGUdUV0pcxY5mW4xKRn3v4c=
github.com/segmentio/ksuid v1.0.4/go.mod h1:/XUiZBD3kVx5SmUOl55voK5yeAbBNNIed+2O73XgrPE=
Expand Down Expand Up @@ -330,6 +338,8 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
golang.org/x/tools v0.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24=
golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/pkg/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/formancehq/fctl/membershipclient"
formance "github.com/formancehq/formance-sdk-go/v2"
"github.com/formancehq/stack/libs/go-libs/logging"
"github.com/formancehq/go-libs/logging"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion components/fctl/pkg/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"strings"

"github.com/formancehq/stack/libs/go-libs/metadata"
"github.com/formancehq/go-libs/metadata"
"github.com/pterm/pterm"
)

Expand Down
2 changes: 1 addition & 1 deletion components/fctl/pkg/printer/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/formancehq/fctl/membershipclient"
fctl "github.com/formancehq/fctl/pkg"
"github.com/formancehq/stack/libs/go-libs/time"
"github.com/formancehq/go-libs/time"
"github.com/pterm/pterm"
)

Expand Down
2 changes: 1 addition & 1 deletion components/fctl/pkg/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"time"

"github.com/formancehq/fctl/membershipclient"
"github.com/formancehq/stack/libs/go-libs/logging"
"github.com/formancehq/go-libs/logging"
"github.com/golang-jwt/jwt"
"github.com/pkg/errors"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion components/fctl/pkg/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"github.com/formancehq/fctl/membershipclient"
"github.com/formancehq/stack/libs/go-libs/collectionutils"
"github.com/formancehq/go-libs/collectionutils"
"github.com/spf13/cobra"
"golang.org/x/mod/semver"
)
Expand Down
1 change: 0 additions & 1 deletion components/ledger/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ FROM core+base-image

sources:
WORKDIR src
COPY (stack+sources/out --LOCATION=libs/go-libs) /src/libs/go-libs
COPY (stack+sources/out --LOCATION=libs/core) /src/libs/core
WORKDIR /src/components/ledger
COPY go.mod go.sum .
Expand Down
6 changes: 3 additions & 3 deletions components/ledger/cmd/buckets.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package cmd

import (
"github.com/formancehq/go-libs/bun/bunconnect"
"github.com/formancehq/go-libs/logging"
"github.com/formancehq/go-libs/service"
"github.com/formancehq/ledger/internal/storage/driver"
"github.com/formancehq/stack/libs/go-libs/bun/bunconnect"
"github.com/formancehq/stack/libs/go-libs/logging"
"github.com/formancehq/stack/libs/go-libs/service"
"github.com/spf13/cobra"
)

Expand Down
10 changes: 5 additions & 5 deletions components/ledger/cmd/container.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package cmd

import (
"github.com/formancehq/go-libs/auth"
"github.com/formancehq/go-libs/otlp/otlpmetrics"
"github.com/formancehq/go-libs/otlp/otlptraces"
"github.com/formancehq/go-libs/publish"
"github.com/formancehq/go-libs/service"
"github.com/formancehq/ledger/internal/engine"
driver "github.com/formancehq/ledger/internal/storage/driver"
"github.com/formancehq/stack/libs/go-libs/auth"
"github.com/formancehq/stack/libs/go-libs/otlp/otlpmetrics"
"github.com/formancehq/stack/libs/go-libs/otlp/otlptraces"
"github.com/formancehq/stack/libs/go-libs/publish"
"github.com/formancehq/stack/libs/go-libs/service"
"github.com/spf13/cobra"
"go.uber.org/fx"
)
Expand Down
Loading

0 comments on commit b40cc3a

Please sign in to comment.