-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Compilation to WASM fails.
To Reproduce
Steps to reproduce the behavior:
- Edit build target:
build:
GOOS=wasip1 GOARCH=wasm go build -ldflags="-s -w" -gcflags='all=-N -l'
- Run
make build
, see the error.
Expected behavior
Hopefully it can work.
Logs
@43-8 lazygit % make build
GOOS=wasip1 GOARCH=wasm go build -ldflags="-s -w" -gcflags='all=-N -l'
# github.com/atotto/clipboard
vendor/github.com/atotto/clipboard/clipboard.go:10:9: undefined: readAll
vendor/github.com/atotto/clipboard/clipboard.go:15:9: undefined: writeAll
# github.com/creack/pty
vendor/github.com/creack/pty/ioctl.go:8:37: undefined: syscall.SYS_IOCTL
vendor/github.com/creack/pty/run.go:30:16: c.SysProcAttr.Setsid undefined (type *syscall.SysProcAttr has no field or method Setsid)
vendor/github.com/creack/pty/run.go:31:16: c.SysProcAttr.Setctty undefined (type *syscall.SysProcAttr has no field or method Setctty)
vendor/github.com/creack/pty/util.go:28:44: undefined: syscall.TIOCSWINSZ
vendor/github.com/creack/pty/util.go:34:44: undefined: syscall.TIOCGWINSZ
vendor/github.com/creack/pty/util.go:55:11: undefined: syscall.SYS_IOCTL
# github.com/jesseduffield/kill
vendor/github.com/jesseduffield/kill/kill_default_platform.go:18:47: cmd.SysProcAttr.Setpgid undefined (type *syscall.SysProcAttr has no field or method Setpgid)
vendor/github.com/jesseduffield/kill/kill_default_platform.go:31:3: unknown field Setpgid in struct literal of type syscall.SysProcAttr
# github.com/adrg/xdg/internal/pathutil
vendor/github.com/adrg/xdg/internal/pathutil/pathutil.go:21:7: undefined: ExpandHome
vendor/github.com/adrg/xdg/internal/pathutil/pathutil.go:48:6: undefined: Exists
vendor/github.com/adrg/xdg/internal/pathutil/pathutil.go:69:6: undefined: Exists
# github.com/sirupsen/logrus
vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go:13:10: undefined: isTerminal
# github.com/gdamore/tcell/v2
vendor/github.com/gdamore/tcell/v2/tscreen.go:185:12: t.initialize undefined (type *tScreen has no field or method initialize)
# github.com/jesseduffield/go-git/v5
vendor/github.com/jesseduffield/go-git/v5/worktree.go:777:19: undefined: isSymlinkWindowsNonAdmin
make: *** [build] Error 1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working