Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prod deploy #2958

Merged
merged 30 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0218be8
chore(deps): bump google.golang.org/grpc from 1.68.0 to 1.68.1 (#2947)
dependabot[bot] Dec 5, 2024
1f05988
chore(deps): bump golang.org/x/term from 0.26.0 to 0.27.0 (#2946)
dependabot[bot] Dec 5, 2024
6bef0d2
chore(deps): bump github.com/getsentry/sentry-go from 0.29.1 to 0.30.…
dependabot[bot] Dec 5, 2024
c136389
chore: update config comments (#2944)
sweatybridge Dec 5, 2024
bc1facc
fix: bump edge-runtime to 1.65.4 (#2940)
nyannyacha Dec 5, 2024
9324c89
fix: bump default postgres for pgmq support (#2948)
sweatybridge Dec 6, 2024
a3fd06a
fix: optional project ref flag for snippets command
sweatybridge Dec 7, 2024
bfa2c42
chore: reuse services command for version check
sweatybridge Dec 7, 2024
9becfab
chore: skip loading project ref if flag is set
sweatybridge Dec 7, 2024
0eac017
fix: account for remote config when pushing
sweatybridge Dec 7, 2024
4a7e73e
fix: allow mapstructure override for site url
sweatybridge Dec 7, 2024
b40c676
chore: remove unmaintained tests
sweatybridge Dec 7, 2024
e4c39e6
chore: bump cli module to v2
sweatybridge Dec 7, 2024
bd0d250
chore: update test coverage
sweatybridge Dec 7, 2024
0e8d7c4
Revert "chore: bump cli module to v2"
sweatybridge Dec 7, 2024
ac76d14
fix: optional smtp block should not override remote (#2954)
sweatybridge Dec 7, 2024
11a9f42
fix: ignore undefined external auth provider (#2955)
sweatybridge Dec 9, 2024
8627a16
chore(deps): bump github.com/docker/cli from 27.3.1+incompatible to 2…
dependabot[bot] Dec 10, 2024
8935766
fix: enforce auth hook secrets conform to standard webhooks (#2961)
sweatybridge Dec 10, 2024
4407647
fix: handle pointers when cloning auth hooks (#2962)
sweatybridge Dec 10, 2024
06044ce
chore: update CODEOWNERS
sweatybridge Dec 11, 2024
baa2c23
fix: rewrite content template path in nested directory (#2965)
sweatybridge Dec 11, 2024
8cac0be
fix: disable image transformation and mfa by default (#2966)
sweatybridge Dec 11, 2024
f1b57bc
fix: make image transformation feature optional (#2967)
sweatybridge Dec 11, 2024
c414ec8
fix: copy image transform by value (#2969)
sweatybridge Dec 11, 2024
e0d03ec
feat(dump): print complete filedist path for dump (#2968)
avallete Dec 11, 2024
3b0df03
chore(deps): bump google.golang.org/grpc from 1.68.1 to 1.69.0 (#2973)
dependabot[bot] Dec 13, 2024
574b879
chore(deps): bump github.com/docker/docker from 27.3.1+incompatible t…
dependabot[bot] Dec 13, 2024
b6c2303
chore(deps): bump go.opentelemetry.io/otel from 1.32.0 to 1.33.0 (#2974)
dependabot[bot] Dec 13, 2024
9432d43
fix: update storage image v1.14.5 (#2976)
fenos Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @supabase/cli
* @supabase/dev-workflows
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ jobs:
# Required by: internal/utils/credentials/keyring_test.go
- uses: t1m0thyj/unlock-keyring@v1
- run: |
go run gotest.tools/gotestsum -- ./... -race -v -count=1 \
-coverpkg ./cmd/...,./internal/... -coverprofile=coverage.out
go run gotest.tools/gotestsum -- -race -v -count=1 -coverprofile=coverage.out \
`go list ./... | grep -Ev 'cmd|docs|examples|pkg/api|tools'`

- uses: shogo82148/actions-goveralls@v1
- uses: coverallsapp/github-action@v2
with:
path-to-profile: coverage.out
file: coverage.out
format: golang

lint:
name: Lint
Expand Down
7 changes: 6 additions & 1 deletion cmd/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"
"os/signal"
"path/filepath"

"github.com/spf13/afero"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -125,7 +126,11 @@ var (
},
PostRun: func(cmd *cobra.Command, args []string) {
if len(file) > 0 {
fmt.Fprintln(os.Stderr, "Dumped schema to "+utils.Bold(file)+".")
if absPath, err := filepath.Abs(file); err != nil {
fmt.Fprintln(os.Stderr, "Dumped schema to "+utils.Bold(file)+".")
} else {
fmt.Fprintln(os.Stderr, "Dumped schema to "+utils.Bold(absPath)+".")
}
}
},
}
Expand Down
3 changes: 1 addition & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/spf13/afero"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/supabase/cli/internal/services"
"github.com/supabase/cli/internal/utils"
"github.com/supabase/cli/internal/utils/flags"
"golang.org/x/mod/semver"
Expand Down Expand Up @@ -250,7 +249,7 @@ func GetRootCmd() *cobra.Command {
}

func addSentryScope(scope *sentry.Scope) {
serviceImages := services.GetServiceImages()
serviceImages := utils.Config.GetServiceImages()
imageToVersion := make(map[string]interface{}, len(serviceImages))
for _, image := range serviceImages {
parts := strings.Split(image, ":")
Expand Down
2 changes: 2 additions & 0 deletions cmd/snippets.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/spf13/cobra"
"github.com/supabase/cli/internal/snippets/download"
"github.com/supabase/cli/internal/snippets/list"
"github.com/supabase/cli/internal/utils/flags"
)

var (
Expand Down Expand Up @@ -35,6 +36,7 @@ var (
)

func init() {
snippetsCmd.PersistentFlags().StringVar(&flags.ProjectRef, "project-ref", "", "Project ref of the Supabase project.")
snippetsCmd.AddCommand(snippetsListCmd)
snippetsCmd.AddCommand(snippetsDownloadCmd)
rootCmd.AddCommand(snippetsCmd)
Expand Down
46 changes: 14 additions & 32 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ require (
github.com/charmbracelet/lipgloss v0.12.1
github.com/containers/common v0.61.0
github.com/deepmap/oapi-codegen/v2 v2.2.0
github.com/docker/cli v27.3.1+incompatible
github.com/docker/docker v27.3.1+incompatible
github.com/docker/cli v27.4.0+incompatible
github.com/docker/docker v27.4.0+incompatible
github.com/docker/go-connections v0.5.0
github.com/docker/go-units v0.5.0
github.com/getsentry/sentry-go v0.29.1
github.com/gin-gonic/gin v1.10.0
github.com/getsentry/sentry-go v0.30.0
github.com/go-errors/errors v1.5.1
github.com/go-git/go-git/v5 v5.12.0
github.com/go-xmlfmt/xmlfmt v1.1.3
Expand All @@ -35,7 +34,6 @@ require (
github.com/jackc/pgtype v1.14.4
github.com/jackc/pgx/v4 v4.18.3
github.com/joho/godotenv v1.5.1
github.com/matoous/go-nanoid/v2 v2.1.0
github.com/mitchellh/mapstructure v1.5.0
github.com/muesli/reflow v0.3.0
github.com/oapi-codegen/runtime v1.1.1
Expand All @@ -48,11 +46,11 @@ require (
github.com/stripe/pg-schema-diff v0.8.0
github.com/withfig/autocomplete-tools/packages/cobra v1.2.0
github.com/zalando/go-keyring v0.2.6
go.opentelemetry.io/otel v1.32.0
go.opentelemetry.io/otel v1.33.0
golang.org/x/mod v0.22.0
golang.org/x/oauth2 v0.24.0
golang.org/x/term v0.26.0
google.golang.org/grpc v1.68.0
golang.org/x/term v0.27.0
google.golang.org/grpc v1.69.0
gopkg.in/yaml.v3 v3.0.1
gotest.tools/gotestsum v1.12.0
)
Expand Down Expand Up @@ -95,8 +93,6 @@ require (
github.com/breml/errchkjson v0.4.0 // indirect
github.com/butuzov/ireturn v0.3.0 // indirect
github.com/butuzov/mirror v1.2.0 // indirect
github.com/bytedance/sonic v1.11.6 // indirect
github.com/bytedance/sonic/loader v0.1.1 // indirect
github.com/catenacyber/perfsprint v0.7.1 // indirect
github.com/ccojocar/zxcvbn-go v1.0.2 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
Expand All @@ -106,8 +102,6 @@ require (
github.com/chavacava/garif v0.1.0 // indirect
github.com/ckaznocha/intrange v0.2.1 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/containers/storage v1.56.0 // indirect
Expand All @@ -133,20 +127,15 @@ require (
github.com/fsnotify/fsnotify v1.8.0 // indirect
github.com/fvbommel/sortorder v1.1.0 // indirect
github.com/fzipp/gocyclo v0.6.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/getkin/kin-openapi v0.124.0 // indirect
github.com/ghostiam/protogetter v0.3.8 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-critic/go-critic v0.11.5 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/swag v0.23.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.20.0 // indirect
github.com/go-toolsmith/astcast v1.1.0 // indirect
github.com/go-toolsmith/astcopy v1.1.0 // indirect
github.com/go-toolsmith/astequal v1.2.0 // indirect
Expand All @@ -156,7 +145,6 @@ require (
github.com/go-toolsmith/typep v1.1.0 // indirect
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/gofrs/flock v0.12.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
Expand Down Expand Up @@ -196,13 +184,11 @@ require (
github.com/jingyugao/rowserrcheck v1.1.1 // indirect
github.com/jjti/go-spancheck v0.6.2 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/julz/importas v0.1.0 // indirect
github.com/karamaru-alpha/copyloopvar v1.1.0 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/kisielk/errcheck v1.8.0 // indirect
github.com/kkHAIKE/contextcheck v1.1.5 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/kulti/thelper v0.6.3 // indirect
Expand All @@ -211,7 +197,6 @@ require (
github.com/lasiar/canonicalheader v1.1.2 // indirect
github.com/ldez/gomoddirectives v0.2.4 // indirect
github.com/ldez/tagliatelle v0.5.0 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/leonklingele/grouper v1.1.2 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
Expand All @@ -234,8 +219,6 @@ require (
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/sys/sequential v0.6.0 // indirect
github.com/moby/term v0.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
github.com/moricho/tparallel v0.3.2 // indirect
github.com/morikuni/aec v1.0.0 // indirect
Expand Down Expand Up @@ -298,7 +281,6 @@ require (
github.com/timonwong/loggercheck v0.10.1 // indirect
github.com/tomarrell/wrapcheck/v2 v2.9.0 // indirect
github.com/tommy-muehle/go-mnd/v2 v2.5.1 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
github.com/ultraware/funlen v0.1.0 // indirect
github.com/ultraware/whitespace v0.1.1 // indirect
Expand All @@ -317,31 +299,31 @@ require (
gitlab.com/bosi/decorder v0.4.2 // indirect
go-simpler.org/musttag v0.13.0 // indirect
go-simpler.org/sloglint v0.7.2 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.28.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.28.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.28.0 // indirect
go.opentelemetry.io/otel/metric v1.32.0 // indirect
go.opentelemetry.io/otel/sdk v1.28.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.28.0 // indirect
go.opentelemetry.io/otel/trace v1.32.0 // indirect
go.opentelemetry.io/otel/metric v1.33.0 // indirect
go.opentelemetry.io/otel/sdk v1.31.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.31.0 // indirect
go.opentelemetry.io/otel/trace v1.33.0 // indirect
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/automaxprocs v1.6.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/arch v0.8.0 // indirect
golang.org/x/crypto v0.29.0 // indirect
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c // indirect
golang.org/x/exp/typeparams v0.0.0-20241108190413-2d47ceb2692f // indirect
golang.org/x/net v0.31.0 // indirect
golang.org/x/sync v0.9.0 // indirect
golang.org/x/sys v0.27.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/text v0.20.0 // indirect
golang.org/x/tools v0.27.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241015192408-796eee8c2d53 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect
google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
Expand Down
Loading
Loading