Comments (2)
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:inbuildpack_for_app': undefined method
find' for nil:NilClass (NoMethodError)
from /var/lib/gems/1.9.1/gems/pkgr-1.1.0/lib/pkgr/builder.rb:63:incompile' from /var/lib/gems/1.9.1/gems/pkgr-1.1.0/lib/pkgr/builder.rb:23:in
call'
from /var/lib/gems/1.9.1/gems/pkgr-1.1.0/lib/pkgr/dispatcher.rb:35:incall' from /var/lib/gems/1.9.1/gems/pkgr-1.1.0/lib/pkgr/cli.rb:36:in
package'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:27:inrun' from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in
invoke_command'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:indispatch' from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in
start'
from /var/lib/gems/1.9.1/gems/pkgr-1.1.0/bin/pkgr:8:in<top (required)>' from /usr/local/bin/pkgr:23:in
load'
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.
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)
- You must use Bundler 2 or greater with this lockfile HOT 2
- `usage` doesn't call `exit`
- .pkrgignore file
- Cant find ruby after updating version HOT 1
- Packaging Rails application with custom ruby patch HOT 1
- mysql-devel dependency warning on centos7
- Can't find gem bundler (>= 0.a) with executable bundle HOT 1
- Drop support for Ruby 1.9.x HOT 1
- CentOS 8 build is failing (missing build pack) HOT 5
- Wrong file permissions in CentOS 8 package HOT 3
- Ubuntu 20.04 HOT 3
- Sles15-Support HOT 2
- Failing to build ruby on Centos 7 (LanguagePack::Fetcher::FetchError) HOT 2
- Debian 11 Bullseye HOT 4
- Packager allows URL manipulation HOT 3
- signed-by option should be reflected by installation suggestion
- Problem syncing Zammad repo via Red Hat Satellite / Pulp3 HOT 4
- Please improve download speed of openproject in China, only 50kB/s HOT 1
- Support for EL9 HOT 6
- Support for Ubuntu 24.04 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkgr.