Git Product home page Git Product logo

Comments (2)

crohr avatar crohr commented on September 2, 2024

Thanks for the bug report. I may have made too big of an assumption here. I'll have a look at what are the possible values for that file.

On 21 Oct 2013, at 18:42, stem [email protected] wrote:

Hi,

I just did a fresh debian wheezy net install, and my /etc/debian_version looks wrong :

git@pkgr:/tmp/buildpacks$ cat /etc/debian_version
7.2
When I do a pkgr package with a puts distribution.inspect inside builder.rb, I get :

git@pkgr:~$ pkgr package /tmp/buildpacks/blu-server/
#<Pkgr::Distributions::Debian:0x00000001de4738 @Version="7.2\n">
/var/lib/gems/1.9.1/gems/pkgr-1.1.0/lib/pkgr/builder.rb:192:in buildpack_for_app': undefined methodfind' for nil:NilClass (NoMethodError)
from /var/lib/gems/1.9.1/gems/pkgr-1.1.0/lib/pkgr/builder.rb:63:in compile' from /var/lib/gems/1.9.1/gems/pkgr-1.1.0/lib/pkgr/builder.rb:23:incall'
from /var/lib/gems/1.9.1/gems/pkgr-1.1.0/lib/pkgr/dispatcher.rb:35:in call' from /var/lib/gems/1.9.1/gems/pkgr-1.1.0/lib/pkgr/cli.rb:36:inpackage'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:27:in run' from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:ininvoke_command'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in dispatch' from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:instart'
from /var/lib/gems/1.9.1/gems/pkgr-1.1.0/bin/pkgr:8:in <top (required)>' from /usr/local/bin/pkgr:23:inload'
from /usr/local/bin/pkgr:23:in `

'
I've patched the debian_version file to be wheezy/7.2 and everything works fine now.

Any idea why the file is not like this from the beginning ?


Reply to this email directly or view it on GitHub.

from pkgr.

crohr avatar crohr commented on September 2, 2024

Forgot to comment here, but this is now taken care of by using the facter gem to fetch the distro version.

from pkgr.

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.