Coder Social home page Coder Social logo

Comments (7)

jamesalbert avatar jamesalbert commented on July 18, 2024

also, when trying to get the latest version directly, I get:

$ go get github.com/ribbybibby/ssl_exporter@master
github.com/ribbybibby/ssl_exporter imports
        github.com/ribbybibby/ssl_exporter/prober imports
        k8s.io/client-go/kubernetes: cannot find module providing package k8s.io/client-go/kubernetes
github.com/ribbybibby/ssl_exporter imports
        github.com/ribbybibby/ssl_exporter/prober imports
        k8s.io/client-go/plugin/pkg/client/auth/oidc: cannot find module providing package k8s.io/client-go/plugin/pkg/client/auth/oidc
github.com/ribbybibby/ssl_exporter imports
        github.com/ribbybibby/ssl_exporter/prober imports
        k8s.io/client-go/tools/clientcmd: cannot find module providing package k8s.io/client-go/tools/clientcmd
go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.

from ssl_exporter.

jamesalbert avatar jamesalbert commented on July 18, 2024

for additional context, I was able to import this package by forking this repo and regenerating the go.mod file. Granted, I'm a go noob these days, so take what I did with a grain of salt. It looks like it added packages that weren't there originally

from ssl_exporter.

ribbybibby avatar ribbybibby commented on July 18, 2024

Hi @jamesalbert. I think this is down to the fact that I bumped from v1 to v2 without amending the module path: https://go.dev/doc/modules/release-workflow. I must admit I was unaware of this requirement at the time.

That being said, this project is not intended to be imported by anyone, so I don't see it as a huge problem.

from ssl_exporter.

jamesalbert avatar jamesalbert commented on July 18, 2024

Nice @ribbybibby glad to hear that's the case. I was scratching my head at that for a bit 😄

I actually have an open pull request to include this project into grafana/agent: grafana/agent#1692

That PR is currently pointed to my fork and I was really hoping to point it back to yours once this was resolved. Would really like to use this exporter in our grafana stack.

from ssl_exporter.

jamesalbert avatar jamesalbert commented on July 18, 2024

@ribbybibby when I regenerated go.mod, I didn't notice any module path change, but whatever it did, it allowed me to pull the most recent version. If I rename all those module path references back to their original, would you accept this as a pr: master...jamesalbert:master

or maybe there's other stuff you wanted to add? I'm not sure

from ssl_exporter.

ribbybibby avatar ribbybibby commented on July 18, 2024

I've made the module path change and cut a new version. Can you try importing with:

require github.com/ribbybibby/ssl_exporter/v2 v2.4.1

This seems to work for me.

from ssl_exporter.

jamesalbert avatar jamesalbert commented on July 18, 2024

Thanks for updating that! There seems to be one more point of contention (at least integrating it into that project). I think it's here: https://github.com/ribbybibby/ssl_exporter/blob/master/go.mod#L14

k8s.io/[email protected] (different from the rest of the k8s.io dependencies at 0.24.0) seems to break version requirements. I'm getting a lot of

I noticed my fork brought it back down to 0.24.0 and is the version the target repo is pointed at. Is there any way we can pin it back down?

Oh, this may have been my fault actually. I just needed this:

replace (
	k8s.io/api => k8s.io/api v0.24.0
	k8s.io/apimachinery => k8s.io/apimachinery v0.24.0
	k8s.io/client-go => k8s.io/client-go v0.24.0
)

It seems to be working now. You rock man, thanks writing this awesome exporter btw 😎

from ssl_exporter.

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.