Coder Social home page Coder Social logo

syscall.EBADFD at FreeBSD about afero HOT 2 CLOSED

spf13 avatar spf13 commented on May 21, 2024
syscall.EBADFD at FreeBSD

from afero.

Comments (2)

mbertschler avatar mbertschler commented on May 21, 2024

It's hard for me to test this but I guess it should work like for OS X and OpenBSD.
Could you try to change line 14 in const_bsds.go to // +build darwin openbsd freebsd
and change the contents of const_win_unix.go to

// +build !darwin
// +build !openbsd
// +build !freebsd

and then report if that works?

from afero.

lnlsn avatar lnlsn commented on May 21, 2024

It works!

$ git diff
diff --git a/const_bsds.go b/const_bsds.go
index 28cd274..9717374 100644
--- a/const_bsds.go
+++ b/const_bsds.go
@@ -11,7 +11,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.

-// +build darwin openbsd
+// +build darwin openbsd freebsd

 package afero

diff --git a/const_win_unix.go b/const_win_unix.go
index 72d6aaf..d8f392b 100644
--- a/const_win_unix.go
+++ b/const_win_unix.go
@@ -12,6 +12,7 @@
 // limitations under the License.
 // +build !darwin
 // +build !openbsd
+// +build !freebsd

 package afero
$ pwd
/home/nixusr/gocode/src/github.com/spf13/afero
$ go build
$ go install
$ go test
PASS
ok      github.com/spf13/afero  4.103s

from afero.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.