Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated syscall package with sys.unix #32

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

drscream
Copy link
Contributor

Syscall package is deprecated and doesn't provide Mkfifo for illumos / Solaris based distributions. It's recommended to use the new implementation sys.unix as a replacement.

References:

Syscall package is deprecated and doesn't provide Mkfifo for illumos /
Solaris based distributions. It's recommended to use the new
implementation sys.unix as a replacement.

References:
- https://docs.google.com/document/d/1QXzI9I1pOfZPujQzxhyRy6EeHYTQitKKjHfpq0zpxZs
- https://go-review.googlesource.com/c/sys/+/14643/3/unix/syscall_solaris.go
@lafriks
Copy link

lafriks commented Apr 3, 2024

Gitea also can not be compiled without this change:

github.com/sassoftware/go-rpmutils/fileutil
# github.com/sassoftware/go-rpmutils/fileutil
../../../go/pkg/mod/github.com/sassoftware/go-rpmutils@v0.3.0/fileutil/fileutil_unix.go:38:17: undefined: syscall.Mkfifo
make: *** [Makefile:789: gitea] Error 1

@mtharp
Copy link
Contributor

mtharp commented Apr 17, 2024

Looks good, thank you!

@mtharp mtharp merged commit 6356a5a into sassoftware:master Apr 17, 2024
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.

None yet

3 participants