readline icon indicating copy to clipboard operation
readline copied to clipboard

Fails to build when GOOS=plan9

Open mholt opened this issue 5 years ago • 0 comments

This package is an indirect dependency of Caddy 2, and is preventing Caddy 2 from being available for Plan 9:

# github.com/chzyer/readline
../../../../../go/pkg/mod/github.com/chzyer/[email protected]/operation.go:234:4: undefined: ClearScreen
../../../../../go/pkg/mod/github.com/chzyer/[email protected]/readline.go:129:20: undefined: GetScreenWidth
../../../../../go/pkg/mod/github.com/chzyer/[email protected]/readline.go:132:22: undefined: DefaultIsTerminal
../../../../../go/pkg/mod/github.com/chzyer/[email protected]/readline.go:142:26: undefined: DefaultOnWidthChanged
../../../../../go/pkg/mod/github.com/chzyer/[email protected]/remote.go:324:2: undefined: DefaultOnWidthChanged
../../../../../go/pkg/mod/github.com/chzyer/[email protected]/remote.go:346:17: undefined: GetScreenWidth
../../../../../go/pkg/mod/github.com/chzyer/[email protected]/remote.go:362:16: undefined: DefaultIsTerminal
../../../../../go/pkg/mod/github.com/chzyer/[email protected]/terminal.go:51:2: undefined: SuspendMe
../../../../../go/pkg/mod/github.com/chzyer/[email protected]/utils.go:81:29: undefined: State
../../../../../go/pkg/mod/github.com/chzyer/[email protected]/utils.go:241:9: undefined: State
../../../../../go/pkg/mod/github.com/chzyer/[email protected]/terminal.go:51:2: too many errors

Some tweaking of build tags should be able to help solve the problem.

Downstream issue: https://github.com/caddyserver/caddy/issues/3615

mholt avatar Jul 31 '20 22:07 mholt