Skip to content

Commit 9914fc1

Browse files
Merge remote-tracking branch 'origin/next' into sync/develop-into-next
# Conflicts: # apps/cli-go/pkg/config/templates/Dockerfile
2 parents f21563c + 8149a66 commit 9914fc1

1,399 files changed

Lines changed: 41911 additions & 132202 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitattributes‎

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,12 @@ apps/cli/src/shared/telemetry/__fixtures__/error-tags.txt text eol=lf
1414
# statistics and collapses them in pull request diffs -- they are build output to
1515
# be regenerated, not code to review, and together they outweigh the hand-written
1616
# source. The attribute is GitHub-only: git, CI, and local diffs are unaffected.
17-
# Collapsed is not hidden. v1-openapi.yaml and the lockfiles do carry changes
18-
# worth reading -- an upstream API change, a dependency substitution -- and both
19-
# stay one click away in review.
20-
# Regeneration is owned by `go generate` in apps/cli-go and by the `generate`
21-
# turbo task, whose `outputs` in turbo.json are the source of truth for this list.
22-
# Only the generated files are listed, not their hand-written inputs
23-
# (pkg/api/*.cfg.yaml, api/overlay.yaml). apps/docs/content/docs/commands/ is
24-
# generated too but gitignored, so it needs no entry.
25-
apps/cli-go/api/v1-openapi.yaml linguist-generated=true
26-
apps/cli-go/pkg/api/*.gen.go linguist-generated=true
17+
# Collapsed is not hidden. The lockfile does carry changes worth reading --
18+
# a dependency substitution -- and stays one click away in review.
19+
# Regeneration is owned by the `generate` turbo task, whose `outputs` in
20+
# turbo.json are the source of truth for this list. Only the generated files
21+
# are listed, not their hand-written inputs. apps/docs/content/docs/commands/
22+
# is generated too but gitignored, so it needs no entry.
2723
packages/api/src/generated/* linguist-generated=true
2824
packages/api/scripts/openapi-source.json linguist-generated=true
2925
packages/stack/src/functions/generated/* text eol=lf linguist-generated=true
@@ -34,7 +30,6 @@ apps/docs/public/cli/project-config.schema.json linguist-generated=true
3430
# Lockfiles. Collapsed rather than hidden -- a dependency change is still one
3531
# click away in review, which is the same treatment GitHub gives package-lock.json.
3632
pnpm-lock.yaml linguist-generated=true
37-
apps/cli-go/go.sum linguist-generated=true
3833

3934
# Not a language marker -- this is the service image manifest, not a container build.
4035
apps/cli/src/shared/services/Dockerfile linguist-detectable=false

‎.github/CODEOWNERS‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,8 @@
1010
/tools/*/package.json @supabase/cli @supabase-oss
1111
/pnpm-lock.yaml @supabase/cli @supabase-oss
1212
/pnpm-workspace.yaml @supabase/cli @supabase-oss
13-
/apps/cli-go/go.mod @supabase/cli @supabase-oss
14-
/apps/cli-go/go.sum @supabase/cli @supabase-oss
15-
/apps/cli-go/pkg/go.mod @supabase/cli @supabase-oss
16-
/apps/cli-go/pkg/go.sum @supabase/cli @supabase-oss
1713
/apps/cli/src/shared/services/Dockerfile @supabase/cli @supabase-oss
18-
/apps/cli-go/pkg/config/templates/Dockerfile @supabase/cli @supabase-oss
1914
/packages/stack/src/Artifacts.ts @supabase/cli @supabase-oss
20-
/apps/cli-go/api/v1-openapi.yaml @supabase/cli @supabase-oss
21-
/apps/cli-go/pkg/api/*.gen.go @supabase/cli @supabase-oss
2215
/packages/api/src/generated/ @supabase/cli @supabase-oss
2316
/packages/api/scripts/openapi-source.json @supabase/cli @supabase-oss
2417

‎.github/ISSUE_TEMPLATE/bug-report.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ body:
107107
id: ticket-id
108108
attributes:
109109
label: Crash report ID
110-
description: If the CLI printed one after rerunning with `--create-ticket`, paste the crash report ID.
110+
description: If you have a crash report or support ticket ID, paste it here.
111111
placeholder: ab1ac733e31e4f928a4d7c8402543712
112112
validations:
113113
required: false

‎.github/actions/setup/action.yml‎

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,10 @@ inputs:
1414
fails with a path validation error.
1515
required: false
1616
default: "true"
17-
go-cache:
18-
description: >-
19-
Whether to restore the Go module and build caches. Disable this in jobs
20-
that never run Go.
21-
required: false
22-
default: "true"
2317
tools:
2418
description: >-
2519
Space-separated mise tools to install instead of every tool in
26-
mise.toml. Skipping the Go toolchain keeps the restored mise cache small.
20+
mise.toml.
2721
required: false
2822
default: ""
2923
pnpm-store-cache:
@@ -189,41 +183,6 @@ runs:
189183
path: ${{ steps.pnpm-cache.outputs.path }}/lockfile-verified.jsonl
190184
key: pnpm-verify-${{ runner.os }}-${{ inputs.dependency-firewall-token != '' && 'firewall' || 'public' }}-${{ hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml') }}
191185

192-
- name: Resolve Go cache paths
193-
if: inputs.dependency-cache == 'true' && inputs.go-cache == 'true'
194-
id: go-cache
195-
shell: bash
196-
run: |
197-
echo "mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
198-
echo "build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
199-
200-
- name: Mount Go module disk
201-
if: inputs.dependency-cache == 'true' && inputs.go-cache == 'true' && steps.sticky.outputs.enabled == 'true'
202-
uses: useblacksmith/stickydisk@b6cb58d1d31d6d32a25248fab12493d831f7bd48 # v1.7.2
203-
with:
204-
key: ${{ github.repository }}-go-mod-v3-${{ runner.arch }}
205-
path: ${{ steps.go-cache.outputs.mod }}
206-
commit: ${{ steps.sticky.outputs.commit }}
207-
208-
- name: Mount Go build disk
209-
if: inputs.dependency-cache == 'true' && inputs.go-cache == 'true' && steps.sticky.outputs.enabled == 'true'
210-
uses: useblacksmith/stickydisk@b6cb58d1d31d6d32a25248fab12493d831f7bd48 # v1.7.2
211-
with:
212-
key: ${{ github.repository }}-go-build-v3-${{ runner.arch }}
213-
path: ${{ steps.go-cache.outputs.build }}
214-
commit: ${{ steps.sticky.outputs.commit }}
215-
216-
- name: Configure Go dependency cache
217-
if: inputs.dependency-cache == 'true' && inputs.go-cache == 'true' && steps.sticky.outputs.enabled != 'true'
218-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
219-
with:
220-
path: |
221-
${{ steps.go-cache.outputs.mod }}
222-
${{ steps.go-cache.outputs.build }}
223-
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('apps/cli-go/go.mod', 'apps/cli-go/go.sum') }}
224-
restore-keys: |
225-
go-cache-${{ runner.os }}-${{ runner.arch }}-
226-
227186
- name: Install dependencies
228187
shell: bash
229188
env:

‎.github/dependabot.yml‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,6 @@ updates:
3737
# — never bundle it into the actions-major group.
3838
cooldown:
3939
default-days: 7
40-
- package-ecosystem: "gomod"
41-
directories:
42-
- "/apps/cli-go"
43-
- "/apps/cli-go/pkg"
44-
schedule:
45-
interval: "cron"
46-
cronjob: "0 0 * * *"
47-
commit-message:
48-
prefix: "chore(cli-go): "
49-
groups:
50-
go-minor:
51-
update-types:
52-
- minor
53-
- patch
54-
exclude-patterns:
55-
- github.com/compose-spec/compose-go/v2
56-
ignore:
57-
- dependency-name: "github.com/compose-spec/compose-go/v2"
58-
- dependency-name: "github.com/docker/cli"
59-
- dependency-name: "github.com/docker/docker"
60-
cooldown:
61-
default-days: 7
6240
- package-ecosystem: "npm"
6341
directory: "/"
6442
schedule:

‎.github/workflows/build-cli-artifacts.yml‎

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ jobs:
7171
with:
7272
dependency-firewall-token: ${{ secrets.DF_FIREWALL_TOKEN }}
7373

74-
- name: Pre-download Go modules
75-
working-directory: apps/cli-go
76-
run: go mod download -x
77-
7874
- name: Install nfpm
7975
env:
8076
NFPM_VERSION: "2.47.0"
@@ -112,13 +108,47 @@ jobs:
112108

113109
- name: Verify build artifacts
114110
run: |
111+
set -euo pipefail
115112
for pkg in cli-darwin-arm64 cli-darwin-x64 cli-linux-arm64 cli-linux-arm64-musl cli-linux-x64 cli-linux-x64-musl cli-windows-arm64 cli-windows-x64; do
116113
echo "Checking packages/$pkg/bin/..."
117114
ls -la "packages/$pkg/bin/"
118115
done
119116
echo "Checking dist/..."
120117
ls -la dist/
121118
119+
# Every channel ships a single `supabase` binary; no `supabase-go` companion.
120+
shopt -s nullglob
121+
for f in packages/*/bin/supabase-go*; do
122+
echo "::error::${f} is a supabase-go companion binary"
123+
exit 1
124+
done
125+
126+
check_listing() {
127+
local artifact="$1"
128+
shift
129+
local listing
130+
if ! listing="$("$@")"; then
131+
echo "::error::failed to list the contents of ${artifact}"
132+
exit 1
133+
fi
134+
if grep -q 'supabase-go' <<<"$listing"; then
135+
echo "::error::${artifact} contains supabase-go"
136+
exit 1
137+
fi
138+
}
139+
140+
for a in dist/*.tar.gz dist/*.apk; do check_listing "$a" tar -tzf "$a"; done
141+
for a in dist/*.zip; do check_listing "$a" unzip -Z1 "$a"; done
142+
for a in dist/*.deb; do check_listing "$a" dpkg-deb -c "$a"; done
143+
rpms=(dist/*.rpm)
144+
if [[ ${#rpms[@]} -gt 0 ]]; then
145+
if command -v rpm >/dev/null; then
146+
for a in "${rpms[@]}"; do check_listing "$a" rpm -qlp "$a"; done
147+
else
148+
echo "::notice::rpm is not installed on this runner; rpm contents were not checked for supabase-go"
149+
fi
150+
fi
151+
122152
- name: Check existing build artifacts cache
123153
id: build-artifacts-cache
124154
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0

‎.github/workflows/cli-go-api-sync.yml‎

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)