Coder Social home page Coder Social logo

Resolver is not exist in go < 1.10. about xd HOT 7 CLOSED

r4sas avatar r4sas commented on June 24, 2024 1
Resolver is not exist in go < 1.10.

from xd.

Comments (7)

l-n-s avatar l-n-s commented on June 24, 2024 1

Dependencies

GNU Make
GO 1.6 or higher

Type net.Resolver was added in 1.8, so I guess XD needs to bump go dependency version to 1.8 ?

from xd.

majestrate avatar majestrate commented on June 24, 2024 1

from xd.

sevospl avatar sevospl commented on June 24, 2024

I'm facing the same issue as well.

src/xd/lib/network/inet/inet.go:21: undefined: net.Resolver Makefile:58: recipe for target 'XD' failed

uname -a
Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux

go version
go version go1.7.4 linux/arm

Any idea on this?

from xd.

sevospl avatar sevospl commented on June 24, 2024

Awesome, I've upgraded Go to the newest version and I was able to compile this. Thanks :)

from xd.

r4sas avatar r4sas commented on June 24, 2024

I think better add vendored version of net package.

from xd.

majestrate avatar majestrate commented on June 24, 2024

we could also do a shim layer too @r4sas if you want to code one up

from xd.

l-n-s avatar l-n-s commented on June 24, 2024

tbh there's no need to, it's a build-time dependency, and most of the users will use prebuilt binaries anyway

from xd.

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.