Git Product home page Git Product logo

Comments (7)

warthog618 avatar warthog618 commented on July 4, 2024

It works for me without problem with a bare checkout on a bare VM and built with Go 1.13.
So you will need to provide more information as to your environment and what you are seeing.

from gpio.

gallex avatar gallex commented on July 4, 2024

I use Raspbian Buster with offical Go 1.11.6.

output message like this :

go: finding github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: finding github.com/stretchr/objx v0.1.0
go: finding github.com/coreos/etcd v3.3.15+incompatible
go: google.golang.org/[email protected]: unrecognized import path "google.golang.org/appengine" (https fetch: Get https://google.golang.org/appengine?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/sys" (https fetch: Get https://golang.org/x/sys?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go: google.golang.org/[email protected]: unrecognized import path "google.golang.org/grpc" (https fetch: Get https://google.golang.org/grpc?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/crypto" (https fetch: Get https://golang.org/x/crypto?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/time" (https fetch: Get https://golang.org/x/time?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go: finding github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/text" (https fetch: Get https://golang.org/x/text?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: finding github.com/golang/protobuf v1.2.0
go: sigs.k8s.io/[email protected]: unrecognized import path "sigs.k8s.io/yaml" (https fetch: Get https://sigs.k8s.io/yaml?go-get=1: dial tcp 35.201.71.162:443: i/o timeout)
go: finding github.com/stretchr/objx v0.1.1
go: finding github.com/kisielk/errcheck v1.1.0
go: google.golang.org/[email protected]: unrecognized import path "google.golang.org/grpc" (https fetch: Get https://google.golang.org/grpc?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go: go.etcd.io/[email protected]: unrecognized import path "go.etcd.io/bbolt" (https fetch: Get https://go.etcd.io/bbolt?go-get=1: dial tcp: lookup go.etcd.io on 114.114.114.114:53: read udp 192.168.1.110:34601->114.114.114.114:53: i/o timeout)
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/sys" (https fetch: Get https://golang.org/x/sys?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/sys" (https fetch: Get https://golang.org/x/sys?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go: finding github.com/ghodss/yaml v1.0.0
go: finding github.com/stretchr/testify v1.2.2

from gpio.

gallex avatar gallex commented on July 4, 2024

I think : require github.com/warthog618/config v0.2.0 maybe error

from gpio.

warthog618 avatar warthog618 commented on July 4, 2024

No, the config dependency is there for the examples. That will be pulling in other dependencies and you seem to have a problem in there somewhere (which I don't get - I can go build in a fresh checkout on Raspbian Buster using the included Go 1.11 - it just downloads a lot - as you say).

Try upgrading to Go 1.13- that only seems to download what the build actually needs rather than everything a full build might need. And if you don't build the examples you should be fine.

from gpio.

gallex avatar gallex commented on July 4, 2024

For me and other guys from china, download from google is a big problem (-; , so we hope download as little as possible.

as GO1.11 has error, GO1.1.3 is too new, my suggestion is do not use module now .

from gpio.

gallex avatar gallex commented on July 4, 2024

Yes, as I tested, import it from other program is OK if the program don't use module, But it would error too if the main program use module.

from gpio.

warthog618 avatar warthog618 commented on July 4, 2024

Your problem with modules is a problem with your environment, not the fact that this library uses modules. Best of luck sorting that out.

from gpio.

Related Issues (8)

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.