Skip to content

Commit 57d02cf

Browse files
committed
fix build
1 parent 6798b75 commit 57d02cf

File tree

8 files changed

+14
-11
lines changed

8 files changed

+14
-11
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ jobs:
4141
- name: Download Go modules
4242
run: go mod download
4343

44-
- name: Build
45-
run: go build -ldflags "-w -s" -o bin/lk ./cmd/lk
44+
- name: Static Check
45+
uses: dominikh/[email protected]
46+
with:
47+
version: "latest"
48+
install-go: false

cmd/lk/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ func runTask(ctx context.Context, cmd *cli.Command) error {
512512
taskName := cmd.Args().First()
513513
if taskName == "" {
514514
var options []huh.Option[string]
515-
for _, name := range tf.Tasks.Keys() {
515+
for name := range tf.Tasks.Keys(nil) {
516516
options = append(options, huh.NewOption(name, name))
517517
}
518518

cmd/lk/cloud.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ const (
5555

5656
var (
5757
revoke bool
58-
timeout int64 = 60 * 15
59-
interval int64 = 4
58+
timeout int = 60 * 15
59+
interval int = 4
6060
serverURL string = cloudAPIServerURL
6161
dashboardURL string = cloudDashboardURL
6262
authClient AuthClient

cmd/lk/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func listProjects(ctx context.Context, cmd *cli.Command) error {
244244
return nil
245245
}
246246

247-
baseStyle := util.Theme.Form.Foreground(util.Fg).Padding(0, 1)
247+
baseStyle := util.Theme.Form.Base.Foreground(util.Fg).Padding(0, 1)
248248
headerStyle := baseStyle.Bold(true)
249249
selectedStyle := util.Theme.Focused.Title.Padding(0, 1)
250250

cmd/lk/replay.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func loadReplay(ctx context.Context, cmd *cli.Command) error {
163163
req := &replay.LoadReplayRequest{
164164
ReplayId: cmd.String("id"),
165165
RoomName: cmd.String("room"),
166-
StartingPts: cmd.Int("pts"),
166+
StartingPts: int64(cmd.Int("pts")),
167167
}
168168
res, err := replayClient.LoadReplay(ctx, req)
169169
if err != nil {
@@ -182,7 +182,7 @@ func seek(ctx context.Context, cmd *cli.Command) error {
182182

183183
req := &replay.RoomSeekRequest{
184184
PlaybackId: cmd.String("id"),
185-
Pts: cmd.Int("pts"),
185+
Pts: int64(cmd.Int("pts")),
186186
}
187187
_, err = replayClient.SeekForRoom(ctx, req)
188188
return err

pkg/bootstrap/bootstrap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func NewTask(ctx context.Context, tf *ast.Taskfile, dir, taskName string, verbos
178178
return nil, err
179179
}
180180

181-
task := &ast.Call{
181+
task := &task.Call{
182182
Task: taskName,
183183
Silent: !verbose,
184184
}

pkg/util/table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func CreateTable() *table.Table {
2929

3030
t := table.New().
3131
Border(lipgloss.NormalBorder()).
32-
BorderStyle(Theme.Form.Foreground(Fg)).
32+
BorderStyle(Theme.Form.Base.Foreground(Fg)).
3333
StyleFunc(styleFunc)
3434

3535
return t

pkg/util/theme.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ var (
3535
}
3636

3737
Fg = lipgloss.AdaptiveColor{Light: "235", Dark: "252"}
38-
FormBaseStyle = Theme.Form.Foreground(Fg).Padding(0, 1)
38+
FormBaseStyle = Theme.Form.Base.Foreground(Fg).Padding(0, 1)
3939
FormHeaderStyle = FormBaseStyle.Bold(true)
4040
)

0 commit comments

Comments
 (0)