-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
packaging deb using 1.14.0 leads to a NameError #1854
Comments
1 task
Thanks for trying the new version!
That’s odd.. is this for Logstash (which I think invokes fpm using the Ruby
api)? I don’t get this error using the cli.
Should be an easy fix and I’ll get this fixed shortly.
…On Wed, Nov 10, 2021 at 5:45 AM Karol Bucek ***@***.***> wrote:
namely NameError: uninitialized constant FPM::Package::CPAN
due the use of the FPM::Package::CPAN
<https://github.com/jordansissel/fpm/blob/v1.14.0/lib/fpm/package/deb.rb#L680>
from 13621c9
<13621c9>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1854>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABAF2TWJFPURUG5NMMAEL3ULJZQZANCNFSM5HX572SA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Reproduced via api |
I'm on the fence about the "best" solution here. Added |
jordansissel
added a commit
that referenced
this issue
Nov 10, 2021
When converting, we check if the original package was of a certain type. In order for those types/constants to be available, we have to require those files. Test cases which now work correctly with this commit, but had failed prior: % bundle exec ruby -r./lib/fpm/package/rpm.rb -e 'FPM::Package::RPM.new.tap { |x| x.name = "fancy" }.convert(FPM::Package::RPM)' % bundle exec ruby -r./lib/fpm/package/deb.rb -e 'FPM::Package::Deb.new.tap { |x| x.name = "fancy" }.convert(FPM::Package::Deb)' Fixes #1854
jordansissel
added a commit
that referenced
this issue
Nov 10, 2021
This was referenced Nov 10, 2021
jordansissel
added a commit
that referenced
this issue
Nov 10, 2021
jordansissel
added a commit
that referenced
this issue
Nov 10, 2021
fpm 1.14.1 pushed which has (hopefully) fixed this. Can you try? |
Confirmed it works now, thanks for the super fast fix <3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
namely
NameError: uninitialized constant FPM::Package::CPAN
(compared to version 1.13.x)due the use of the
FPM::Package::CPAN
from 13621c9 (in theFPM::Package::Deb
class)trying to use
require "fpm/package/deb"
one needs to these extra "seemingly unrelated" requires:(likely a similar limitation exists for
FPM::Package::Rpm
->require "fpm/package/gem"
)The text was updated successfully, but these errors were encountered: