Skip to content

Commit 7bfee6e

Browse files
chore(deps): bump github.com/charmbracelet/huh from 0.8.0 to 1.0.0 (#708)
* chore(deps): bump github.com/charmbracelet/huh from 0.8.0 to 1.0.0 Bumps [github.com/charmbracelet/huh](https://github.com/charmbracelet/huh) from 0.8.0 to 1.0.0. - [Release notes](https://github.com/charmbracelet/huh/releases) - [Commits](charmbracelet/huh@v0.8.0...v1.0.0) --- updated-dependencies: - dependency-name: github.com/charmbracelet/huh dependency-version: 1.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * chore: breaking changes for huh form * chore: bump go version everywhere * chore: go mod tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stavros <[email protected]>
1 parent bf4e567 commit 7bfee6e

12 files changed

Lines changed: 76 additions & 76 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup go
1919
uses: actions/setup-go@v5
2020
with:
21-
go-version: "^1.24.0"
21+
go-version: "^1.26.0"
2222

2323
- name: Initialize submodules
2424
run: |

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- name: Install go
6262
uses: actions/setup-go@v5
6363
with:
64-
go-version: "^1.24.0"
64+
go-version: "^1.26.0"
6565

6666
- name: Initialize submodules
6767
run: |
@@ -116,7 +116,7 @@ jobs:
116116
- name: Install go
117117
uses: actions/setup-go@v5
118118
with:
119-
go-version: "^1.24.0"
119+
go-version: "^1.26.0"
120120

121121
- name: Initialize submodules
122122
run: |

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install go
3838
uses: actions/setup-go@v5
3939
with:
40-
go-version: "^1.24.0"
40+
go-version: "^1.26.0"
4141

4242
- name: Initialize submodules
4343
run: |
@@ -89,7 +89,7 @@ jobs:
8989
- name: Install go
9090
uses: actions/setup-go@v5
9191
with:
92-
go-version: "^1.24.0"
92+
go-version: "^1.26.0"
9393

9494
- name: Initialize submodules
9595
run: |

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ COPY ./frontend/vite.config.ts ./
2020
RUN bun run build
2121

2222
# Builder
23-
FROM golang:1.25-alpine3.21 AS builder
23+
FROM golang:1.26-alpine3.21 AS builder
2424

2525
ARG VERSION
2626
ARG COMMIT_HASH

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25-alpine3.21
1+
FROM golang:1.26-alpine3.21
22

33
WORKDIR /tinyauth
44

Dockerfile.distroless

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ COPY ./frontend/vite.config.ts ./
2020
RUN bun run build
2121

2222
# Builder
23-
FROM golang:1.25-alpine3.21 AS builder
23+
FROM golang:1.26-alpine3.21 AS builder
2424

2525
ARG VERSION
2626
ARG COMMIT_HASH

cmd/tinyauth/create_user.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"strings"
77

8-
"github.com/charmbracelet/huh"
8+
"charm.land/huh/v2"
99
"github.com/steveiliop56/tinyauth/internal/utils/tlog"
1010
"github.com/traefik/paerser/cli"
1111
"golang.org/x/crypto/bcrypt"
@@ -61,9 +61,8 @@ func createUserCmd() *cli.Command {
6161
),
6262
)
6363

64-
var baseTheme *huh.Theme = huh.ThemeBase()
65-
66-
err := form.WithTheme(baseTheme).Run()
64+
theme := new(themeBase)
65+
err := form.WithTheme(theme).Run()
6766

6867
if err != nil {
6968
return fmt.Errorf("failed to run interactive prompt: %w", err)

cmd/tinyauth/generate_totp.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/steveiliop56/tinyauth/internal/utils"
1010
"github.com/steveiliop56/tinyauth/internal/utils/tlog"
1111

12-
"github.com/charmbracelet/huh"
12+
"charm.land/huh/v2"
1313
"github.com/mdp/qrterminal/v3"
1414
"github.com/pquerna/otp/totp"
1515
"github.com/traefik/paerser/cli"
@@ -54,9 +54,8 @@ func generateTotpCmd() *cli.Command {
5454
),
5555
)
5656

57-
var baseTheme *huh.Theme = huh.ThemeBase()
58-
59-
err := form.WithTheme(baseTheme).Run()
57+
theme := new(themeBase)
58+
err := form.WithTheme(theme).Run()
6059

6160
if err != nil {
6261
return fmt.Errorf("failed to run interactive prompt: %w", err)

cmd/tinyauth/tinyauth.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"fmt"
55

6+
"charm.land/huh/v2"
67
"github.com/steveiliop56/tinyauth/internal/bootstrap"
78
"github.com/steveiliop56/tinyauth/internal/config"
89
"github.com/steveiliop56/tinyauth/internal/utils/loaders"
@@ -123,3 +124,9 @@ func runCmd(cfg config.Config) error {
123124

124125
return nil
125126
}
127+
128+
type themeBase struct{}
129+
130+
func (t *themeBase) Theme(isDark bool) *huh.Styles {
131+
return huh.ThemeBase(isDark)
132+
}

cmd/tinyauth/verify_user.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/steveiliop56/tinyauth/internal/utils"
88
"github.com/steveiliop56/tinyauth/internal/utils/tlog"
99

10-
"github.com/charmbracelet/huh"
10+
"charm.land/huh/v2"
1111
"github.com/pquerna/otp/totp"
1212
"github.com/traefik/paerser/cli"
1313
"golang.org/x/crypto/bcrypt"
@@ -71,9 +71,8 @@ func verifyUserCmd() *cli.Command {
7171
),
7272
)
7373

74-
var baseTheme *huh.Theme = huh.ThemeBase()
75-
76-
err := form.WithTheme(baseTheme).Run()
74+
theme := new(themeBase)
75+
err := form.WithTheme(theme).Run()
7776

7877
if err != nil {
7978
return fmt.Errorf("failed to run interactive prompt: %w", err)

0 commit comments

Comments
 (0)