Coder Social home page Coder Social logo

Comments (5)

fbreckle avatar fbreckle commented on June 11, 2024 1

I don't think the client will become the main client, because it has some changes specific to this provider.

I thought some more about it and remembered that Go has some replace directive for the module file. I think this problem can be solved with that.

See https://go.dev/ref/mod#go-mod-file-replace or some google-fu like https://stackoverflow.com/questions/56671133/how-to-use-a-forked-module-with-versioned-go-modules-v1-11-go111module-on

For your PRs, you would then just add your fork to the go.mod once instead of changing every file.

from terraform-provider-netbox.

fbreckle avatar fbreckle commented on June 11, 2024

Hm. I see the issue, but I think it would be VERY bad practice to do so. They are separate things and should be separated.

Pinging @FlxPeters to get a second opinion on this.

from terraform-provider-netbox.

FlxPeters avatar FlxPeters commented on June 11, 2024

To be honest I'm not sure if its a good or bad idea. Both have their pros and cons.
Managing the lib outside of the provider is the clean and best practice way. In a perfect world we wouldn't need a custom provider but the official one is not good enough.

The question is, is there any other user of the lib code than this repo? If not, it would be a possible solution.
If we cannot guarantee it i would stay with the external repo.

from terraform-provider-netbox.

holmesb avatar holmesb commented on June 11, 2024

If there's a chance fbreckle/go-netbox will become the main go client, then I can understand keeping it separate. It has many improvements over the "official" one.

from terraform-provider-netbox.

holmesb avatar holmesb commented on June 11, 2024

Good enough. Thx @fbreckle

from terraform-provider-netbox.

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.