Skip to content

wails build error with bob package #4935

@pobearm

Description

@pobearm

Description

Wails build error: internal error: package "github.com/stephenafamo/bob/dialect/sqlite" without types was imported from "..."
But i use 'go build ', is ok.

To Reproduce

import (
"github.com/stephenafamo/bob/dialect/sqlite" //latest version v0.42.0
// "github.com/stephenafamo/bob/dialect/sqlite/sm"
)

func GetUser(ctx context.Context, id string) (err error) {
sqlite.Select(
// sm.Columns("id", "user_name"),
// sm.From(""),
// sm.Where(sqlite.Quote("id").EQ(sqlite.S(id))),
).MustBuild(ctx)
return
}

just add this code.

Expected behaviour

wails build success.

Screenshots

No response

Attempted Fixes

No response

System Details

# Wails
Version | v2.11.0


# System
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Enterprise                                                                            |
| Version      | 2009 (Build: 26200)                                                                              |
| ID           | 25H2                                                                                             |
| Branding     | Windows 11 企业版                                                                                |
| Go Version   | go1.25.5                                                                                         |
| Platform     | windows                                                                                          |
| Architecture | amd64                                                                                            |
| CPU          | Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz                                                          |
| GPU 1        | OrayIddDriver Device |
| GPU 2        | NVIDIA GeForce GTX 1060 3GB (NVIDIA) - Driver: 32.0.15.6094                                      |
| Memory       | 16GB                                                                                             |
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 144.0.3719.93 |
| Nodejs     | N/A          | Installed | 22.18.0       |
| npm        | N/A          | Installed | 10.9.3        |
| *upx       | N/A          | Installed | upx 5.0.2     |
| *nsis      | N/A          | Installed | v3.11         |
|                                                       |
└─────────────── * - Optional Dependency ───────────────┘

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingawaiting feedbackMore information is required from the requestor

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions