Skip to content

How to cross compile linux app binary in my macos machine? #367

Description

@wymli

If I run CGO_ENABLED=0 GOOS=linux GOARCH=amd64 bud build, got an error:

# github.com/livebud/bud/internal/dag
../../.gvm/pkgsets/go1.18/global/pkg/mod/github.com/livebud/bud@v0.2.7/internal/dag/sqlite.go:345:27: undefined: sqlite3.Error
../../.gvm/pkgsets/go1.18/global/pkg/mod/github.com/livebud/bud@v0.2.7/internal/dag/sqlite.go:349:47: undefined: sqlite3.ErrReadonlyDbMoved
| exit status 2

but run bud build will build successfully.


❯ bud version
bud: 0.2.7
svelte: 3.47.0
react: 18.0.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions