Code Monkey home page Code Monkey logo

Comments (6)

sihil avatar sihil commented on August 16, 2024

Yep, this has bitten me too and changed in the most recent version when hiera was made a dependency in the gem.

Ideally there should be a really easy way of telling fpm to drop a dependency (e.g. --exclude-dep hiera) but in the absence of such a feature we could look at removing the dependency from our side, even though it makes a lot of sense to have it in most environments.

from hiera-eyaml.

shawn-sterling avatar shawn-sterling commented on August 16, 2024

Actually it easy easy for you to do that in fpm. Just add a "-e" flag and that will allow you to edit the spec file, so there is no rpm dependency for the rubygem-hiera-eyaml. I should have mentioned that I already did this, and it failed.

The gem hiera-eyaml is requiring the gem hiera.

Does that make sense?

-Shawn

from hiera-eyaml.

sihil avatar sihil commented on August 16, 2024

I think so... the dependency is evaluated by RubyGem at runtime as well as install time.

Didn't realise that Ruby did that, but makes sense. I ended up building my own gem without the dep so I could build an RPM from it.

I wonder if FPM can be made to deeply remove the dependency when converting from a gem - i.e. remove it from the metadata as well as simply drop it from the RPM

from hiera-eyaml.

denmat avatar denmat commented on August 16, 2024

Hi,

this is biting me too. Any chance we could stick the dependency in the Gemfile?

I actually get this error which is really confusing:

Error 400 on SERVER: undefined method `read_file' for #<Hiera::Filecache:0x7fb5d43b0948 @cache={}> 

(I updated to this version of hiera-eyaml because of #78)

from hiera-eyaml.

shawn-sterling avatar shawn-sterling commented on August 16, 2024

Hi denmat,

I was getting similar errors here: #82

You may want to try what I did for the interim.

Take it easy.

-Shawn

from hiera-eyaml.

robinbowes avatar robinbowes commented on August 16, 2024

This is a "me too" post. We're using Puppet Enterprise (which comes with pe-hiera) and have generated RPMs for all rubygems that we use. There is no hiera gem installed. Additionally, pe-hiera obsoletes pe-rubygem-hiera so it is not possible to install it. The only work around I have found is to "gem install hiera" but this is not possible in all our environments. Another possibility would be to remove the dependency from the RPM when we build from the gem.

from hiera-eyaml.

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.