hpcloud / tail

Go package for reading from continously updated files (tail -f)
MIT License
2.7k stars 502 forks source link

Add illumos to build constraints #185

Closed szaydel closed 2 years ago

szaydel commented 2 years ago

Please consider this change, which makes it possible to build this package on Illumos. Here's an example without and with this change.

Without:

$ go get github.com/hpcloud/tail
# github.com/hpcloud/tail
go/pkg/mod/github.com/hpcloud/tail@v1.0.0/tail.go:127:17: undefined: OpenFile
go/pkg/mod/github.com/hpcloud/tail@v1.0.0/tail.go:191:20: undefined: OpenFile

With:

omni@vm-omnios-1:~$ go get github.com/szaydel/tail@3acc3e6bb346dafeacbc2dcc3a2b748b0d27f1bb
omni@vm-omnios-1:~$ echo $?
0

Thank you!