Skip to content

Conversation

@arturfabriciohahaedgy
Copy link

When trying to run go install 9fans.net/go/...@latest I recieved the following error:
go/pkg/mod/9fans.net/[email protected]/cmd/samterm/unix.go:62:21: cannot use fd (variable of type int) as type *os.File in argument to extproc
It appears that the value of syscall.Open in the function extstart in go/cmd/samterm/unix.go:43:12 has changed from *os.File to an integer, and so breaking the parameter passed to extproc in sys.go.
My commit fixes this by adding the syscall import to sys.go and using the function syscall.Read.

@arturfabriciohahaedgy arturfabriciohahaedgy changed the title fix change in return value of syscall.Open(extstart in unix.go) fix change in return value of syscall.Open Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant