Skip to content

global: switch to x/sys/unix - #135

Closed
suihkulokki wants to merge 1 commit into
fsnotify:masterfrom
suihkulokki:go-sys
Closed

suihkulokki wants to merge 1 commit into
fsnotify:masterfrom
suihkulokki:go-sys

Conversation

@suihkulokki

Copy link
Copy Markdown
Contributor

The syscall package is locked since 1.4[1], all new changes are in x/sys[2]
The fixes for epoll/arm64 are going to be loaded to x/sys/unix. This
commit is straightforward search/replace with a couple of hand edits.

This is needed for fixing #130

[1] https://golang.org/s/go1.4-syscall
[2] https://godoc.org/golang.org/x/sys/unix

@suihkulokki

Copy link
Copy Markdown
Contributor Author

Hi, I don't know why the darwin case failed on travis. It appears syscall and x/sys are quite identical in this front.

@nathany

nathany commented Apr 15, 2016 •

Copy link
Copy Markdown
Contributor

Thanks. It would've been a bit easier to use an alias for the import import syscall "golang.org/x/sys/unix" but this is fine.

It looks like the CI failure on darwin as something flaky.

Adding a dependency could break people's builds, so we'll need to release this carefully.

@nathany

nathany commented Apr 18, 2016

Copy link
Copy Markdown
Contributor

@anthonyfok offered to do some additional testing in #112.

I think we should release this as v1.3.0 by the end of April. I'm thinking of pre-announcing the release to golang-nuts, since it does require a new dependency.

@nathany

nathany commented Apr 19, 2016 •

Copy link
Copy Markdown
Contributor

Comment thread kqueue.go Outdated
done chan bool // Channel for sending a "quit message" to the reader goroutine

kq int // File descriptor (as returned by the kqueue() syscall).
kq int // File descriptor (as returned by the kqueue() unix..

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One too many "syscall" string is changed to "unix" here in this comment? 😁

The syscall package is locked since 1.4[1], all new changes are in x/sys[2]
The fixes for epoll/arm64 are going to be loaded to x/sys/unix. This
commit is straightforward search/replace with a couple of hand edits.

This is needed for fixing fsnotify#130

[1] https://golang.org/s/go1.4-syscall
[2] https://godoc.org/golang.org/x/sys/unix
@suihkulokki

Copy link
Copy Markdown
Contributor Author

Updated patch with the comment fixes, one noticed by @anthonyfok thanks. There was another spurious syscall -> unix change + one comment line had become unaligned afterwards.

@anthonyfok

Copy link
Copy Markdown

Thank you for updating the patch so quickly, @suihkulokki!

I am happy to report that your patch works wonder! hugo server --watch quickly reports any changed files and re-render the website promptly, and no longer give "function not implemented" errors (gohugoio/hugo#1772). Thank you for your great work, @suihkulokki!

Cc: @nathany

@nathany nathany closed this in 30411db Apr 20, 2016
@nathany

nathany commented Apr 20, 2016

Copy link
Copy Markdown
Contributor

merged. thanks

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.

3 participants