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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.24.x'
go-version: '1.26.x'
Comment on lines +13 to +16
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is pinned to Go 1.26.x, but the module's go.mod declares Go 1.25.0. If 1.25 is the minimum supported version, consider running lint on 1.25.x (or using a version matrix for 1.25.x + 1.26.x) so CI doesn't accidentally rely on newer compiler/tooling behavior than consumers will have.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep CI on declared Go support floor

go.mod now declares go 1.25.0, but the CI test job runs only on 1.26.x; this drops coverage for the minimum supported toolchain and can let 1.26-only APIs or behavior slip in undetected until users build with 1.25. If 1.25 is still intended to be supported, pin CI to 1.25.x (or add a matrix including both 1.25.x and 1.26.x) so compatibility regressions are caught.

Useful? React with 👍 / 👎.

- name: golangci-lint
uses: golangci/golangci-lint-action@v7
with:
Expand All @@ -22,10 +22,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.24.x'
go-version: '1.26.x'
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test job uses Go 1.26.x while go.mod declares Go 1.25.0. To ensure you keep compatibility with the declared minimum Go version, consider testing on 1.25.x (or a matrix that includes both 1.25.x and 1.26.x).

Suggested change
go-version: '1.26.x'
go-version: '1.25.x'

Copilot uses AI. Check for mistakes.
- name: check-readme
run: |
go run ./scripts/update_readme.go
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/v')"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version: '1.24.x'
go-version: '1.26.x'
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Release builds use Go 1.26.x but go.mod declares Go 1.25.0. If Go 1.25 is intended to be the minimum supported version, consider aligning release builds to 1.25.x (or building in a matrix and publishing artifacts built with the minimum version) to avoid subtle differences introduced by a newer toolchain.

Suggested change
go-version: '1.26.x'
go-version: '1.25.x'

Copilot uses AI. Check for mistakes.
cache: true
- uses: goreleaser/goreleaser-action@v6
- uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: latest
Expand All @@ -38,8 +38,8 @@ jobs:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/testutils/python/v')"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install deps
Expand All @@ -57,7 +57,7 @@ jobs:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/testutils/rust/v')"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- run: cargo publish
working-directory: testutils/rust
env:
Expand Down
69 changes: 34 additions & 35 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
module github.com/j178/leetgo

go 1.24.9
go 1.25.0

require (
github.com/AlecAivazis/survey/v2 v2.3.7
github.com/JohannesKaufmann/html-to-markdown v1.6.0
github.com/PuerkitoBio/goquery v1.11.0
github.com/PuerkitoBio/goquery v1.12.0
github.com/avast/retry-go v3.0.0+incompatible
github.com/briandowns/spinner v1.23.2
github.com/charmbracelet/bubbles v0.21.0
github.com/charmbracelet/bubbles v1.0.0
github.com/charmbracelet/bubbletea v1.3.10
github.com/charmbracelet/glamour v0.10.0
github.com/charmbracelet/glamour v1.0.0
github.com/charmbracelet/lipgloss v1.1.1-0.20250404203927-76690c660834
github.com/charmbracelet/log v0.4.2
github.com/charmbracelet/log v1.0.0
github.com/cli/browser v1.3.0
github.com/dghubble/sling v1.4.2
github.com/dop251/goja v0.0.0-20251201205617-2bb4c724c0f9
github.com/fatih/color v1.18.0
github.com/goccy/go-json v0.10.5
github.com/dop251/goja v0.0.0-20260311135729-065cd970411c
github.com/fatih/color v1.19.0
github.com/goccy/go-json v0.10.6
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
github.com/grokify/html-strip-tags-go v0.1.0
github.com/hako/durafmt v0.0.0-20210608085754-5c1018a4e16b
github.com/hexops/gotextdiff v1.0.3
github.com/ivanpirog/coloredcobra v1.0.1
github.com/j178/kooky v0.0.0-20251223152209-7ad4f89aab97
github.com/j178/leetgo/testutils/go v0.2.1
github.com/jedib0t/go-pretty/v6 v6.7.8
github.com/jedib0t/go-pretty/v6 v6.7.9
github.com/joho/godotenv v1.5.1
github.com/k3a/html2text v1.2.1
github.com/k3a/html2text v1.4.0
github.com/mitchellh/go-homedir v1.1.0
github.com/muesli/reflow v0.3.0
github.com/pelletier/go-toml/v2 v2.2.4
github.com/pelletier/go-toml/v2 v2.3.0
github.com/sashabaranov/go-openai v1.41.2
github.com/spf13/cobra v1.10.2
github.com/spf13/viper v1.21.0
Expand All @@ -41,20 +41,19 @@ require (

require (
github.com/Velocidex/ordereddict v0.0.0-20250626035939-2f7f022fc719 // indirect
github.com/alecthomas/chroma/v2 v2.21.1 // indirect
github.com/alecthomas/chroma/v2 v2.23.1 // indirect
github.com/andybalholm/cascadia v1.3.3 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/bobesa/go-domain-util v0.0.0-20250410211237-17ab3b2f4a95 // indirect
github.com/charmbracelet/colorprofile v0.4.1 // indirect
github.com/charmbracelet/x/ansi v0.11.3 // indirect
github.com/charmbracelet/x/cellbuf v0.0.14 // indirect
github.com/charmbracelet/x/exp/slice v0.0.0-20251215102626-e0db08df7383 // indirect
github.com/charmbracelet/colorprofile v0.4.3 // indirect
github.com/charmbracelet/x/ansi v0.11.6 // indirect
github.com/charmbracelet/x/cellbuf v0.0.15 // indirect
github.com/charmbracelet/x/exp/slice v0.0.0-20260330094520-2dce04b6f8a4 // indirect
github.com/charmbracelet/x/term v0.2.2 // indirect
github.com/clipperhouse/displaywidth v0.6.2 // indirect
github.com/clipperhouse/stringish v0.1.1 // indirect
github.com/clipperhouse/uax29/v2 v2.3.0 // indirect
github.com/clipperhouse/displaywidth v0.11.0 // indirect
github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
github.com/dlclark/regexp2 v1.11.5 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
Expand All @@ -63,21 +62,21 @@ require (
github.com/go-logfmt/logfmt v0.6.1 // indirect
github.com/go-sourcemap/sourcemap v2.1.4+incompatible // indirect
github.com/go-sqlite/sqlite3 v0.0.0-20180313105335-53dd8e640ee7 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/godbus/dbus/v5 v5.2.1 // indirect
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
github.com/godbus/dbus/v5 v5.2.2 // indirect
github.com/gonuts/binary v0.2.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/pprof v0.0.0-20251213031049-b05bdaca462f // indirect
github.com/google/go-querystring v1.2.0 // indirect
github.com/google/pprof v0.0.0-20260402051712-545e8a4df936 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/css v1.0.1 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/keybase/go-keychain v0.0.1 // indirect
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
github.com/lucasb-eyer/go-colorful v1.4.0 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.19 // indirect
github.com/mattn/go-runewidth v0.0.22 // indirect
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
Expand All @@ -95,19 +94,19 @@ require (
github.com/tidwall/match v1.2.0 // indirect
github.com/tidwall/pretty v1.2.1 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
github.com/yuin/goldmark v1.7.13 // indirect
github.com/yuin/goldmark v1.8.2 // indirect
github.com/yuin/goldmark-emoji v1.0.6 // indirect
github.com/zalando/go-keyring v0.2.6 // indirect
github.com/zalando/go-keyring v0.2.8 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/crypto v0.46.0 // indirect
golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93 // indirect
golang.org/x/net v0.48.0 // indirect
golang.org/x/sys v0.39.0 // indirect
golang.org/x/term v0.38.0 // indirect
golang.org/x/text v0.32.0 // indirect
golang.org/x/crypto v0.49.0 // indirect
golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90 // indirect
golang.org/x/net v0.52.0 // indirect
golang.org/x/sys v0.42.0 // indirect
golang.org/x/term v0.41.0 // indirect
golang.org/x/text v0.35.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
modernc.org/libc v1.67.1 // indirect
modernc.org/libc v1.70.0 // indirect
modernc.org/mathutil v1.7.1 // indirect
modernc.org/memory v1.11.0 // indirect
modernc.org/sqlite v1.41.0 // indirect
modernc.org/sqlite v1.48.1 // indirect
)
Loading
Loading