Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copy to .env.test (ignored by git) and fill in.
# Used only by the integration tests: cd src-tauri && cargo test -- --ignored --test-threads=1
# Used only by the integration tests: set -a && . ./.env.test && set +a && go test ./internal/...
# Prefer a test user; the tests only create a TEMP table in PostgreSQL
# and only run SELECT / anonymous PL/SQL in Oracle. MySQL and SQL Server
# tests use temporary tables plus a few lq_* tables they drop at the end.
Expand Down
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Shell scripts run in Git Bash and on Linux/macOS runners: keep LF.
*.sh text eol=lf
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/database_support.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ body:
- type: textarea
id: driver
attributes:
label: Known Rust drivers or protocol notes
label: Known Go drivers or protocol notes
description: Optional. Links to drivers, protocol documentation or tools that handle this engine well.
17 changes: 5 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
version: 2
updates:
- package-ecosystem: cargo
directory: /src-tauri
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
day: monday
open-pull-requests-limit: 5
# The Oracle driver is a pinned beta; upgrade it deliberately.
ignore:
- dependency-name: oracledb
groups:
tauri:
patterns: ["tauri", "tauri-*"]
postgres:
patterns: ["tokio-postgres", "tokio-postgres-*", "postgres-*"]
rust-minor-and-patch:
wails:
patterns: ["github.com/wailsapp/*"]
go-minor-and-patch:
update-types: [minor, patch]

- package-ecosystem: npm
Expand All @@ -24,8 +19,6 @@ updates:
day: monday
open-pull-requests-limit: 5
groups:
tauri:
patterns: ["@tauri-apps/*"]
svelte:
patterns: ["svelte", "svelte-check", "@sveltejs/*"]
codemirror:
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/render_pkgbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def render_release(version, assets, root=ROOT):
"__VERSION__": version,
"__SHA256_PORTABLE__": sha256(assets / f"LowQuery-{version}-linux-x64-portable.tar.gz"),
"__SHA256_DESKTOP__": sha256(root / "packaging/arch/lowquery.desktop"),
"__SHA256_ICON__": sha256(root / "src-tauri/icons/128x128.png"),
"__SHA256_ICON__": sha256(root / "packaging/icons/128x128.png"),
},
)

Expand Down
6 changes: 3 additions & 3 deletions .github/scripts/test_update_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def test_signed_assets_become_platforms_with_one_key_per_linux_format(self):
assets = Path(tmp)
for name in [
"LowQuery-1.2.3-windows-x64-setup.exe",
"LowQuery-1.2.3-windows-x64.msi",
"LowQuery-1.2.3-macos-universal.app.tar.gz",
"LowQuery-1.2.3-linux-x64.AppImage",
"LowQuery-1.2.3-linux-x64.deb",
Expand All @@ -25,12 +24,13 @@ def test_signed_assets_become_platforms_with_one_key_per_linux_format(self):
self.assertEqual(
sorted(doc["platforms"]),
["darwin-aarch64", "darwin-x86_64", "linux-x86_64-appimage", "linux-x86_64-deb",
"linux-x86_64-rpm", "windows-x86_64", "windows-x86_64-msi", "windows-x86_64-nsis"],
"linux-x86_64-rpm", "windows-x86_64", "windows-x86_64-nsis"],
)
self.assertNotIn("linux-x86_64", doc["platforms"])
self.assertTrue(doc["platforms"]["linux-x86_64-deb"]["url"].endswith("/LowQuery-1.2.3-linux-x64.deb"))
self.assertTrue(doc["platforms"]["linux-x86_64-rpm"]["url"].endswith("/LowQuery-1.2.3-linux-x64.rpm"))
self.assertEqual(doc["platforms"]["windows-x86_64-msi"]["signature"], "sig-LowQuery-1.2.3-windows-x64.msi")
self.assertNotIn("windows-x86_64-msi", doc["platforms"])
self.assertEqual(doc["platforms"]["windows-x86_64-nsis"]["signature"], "sig-LowQuery-1.2.3-windows-x64-setup.exe")
self.assertTrue(doc["platforms"]["windows-x86_64"]["url"].endswith("/v1.2.3/LowQuery-1.2.3-windows-x64-setup.exe"))

def test_unsigned_assets_are_skipped(self):
Expand Down
5 changes: 3 additions & 2 deletions .github/scripts/update_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ def signed(keys, asset):
for key in keys:
platforms[key] = {"signature": signature.read_text().strip(), "url": f"{base}/{asset}"}

# Installed Windows copies update with the installer they came from.
# Every Windows install updates with the NSIS setup. Copies installed from
# the MSI of 0.5.x find no "-msi" key and fall back to "windows-x86_64";
# the setup then replaces the MSI install with a per-user one.
signed(["windows-x86_64", "windows-x86_64-nsis"], f"LowQuery-{version}-windows-x64-setup.exe")
signed(["windows-x86_64-msi"], f"LowQuery-{version}-windows-x64.msi")
signed(["darwin-aarch64", "darwin-x86_64"], f"LowQuery-{version}-macos-universal.app.tar.gz")
# One key per Linux format, never a generic one: a .deb install must get a
# .deb, an .rpm install an .rpm, and the Arch package nothing (pacman owns it).
Expand Down
Loading
Loading