-
Notifications
You must be signed in to change notification settings - Fork 66
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
uninitialized constant SafeYAML::Parse::Date::DateTime (NameError) #80
Comments
i'm having this error occur on debian/buster
|
As a quick fix, changing here class Date
# This one's easy enough :) to class Date
require 'time'
# This one's easy enough :) seems to fix it |
confirmed, @javierbertoli thanks! |
i was having the same problem when upgrading from ruby version 2.4.2 to 2.5.0 $ ruby --version
ruby 2.5.0p0 (2017-12-25 revision 61468)
$ cat Gemfile.lock | grep -i 'test-kitchen ([0-9]'
test-kitchen (1.19.2) applying @javierbertoli quick fix resolved my pain. any idea? |
@y0y0z My only guess is that somebody somewhere was doing a Top level constant names are a nasty little bit of global state in Ruby... |
Patch ruby-safe-yaml to fix an issue that would lead to an error like this: uninitialized constant SafeYAML::Parse::Date::DateTime It's been reported upstream [1], and this patch was taken from the upstream Git repository. 1: dtao/safe_yaml#80 * gnu/packages/ruby.scm (ruby-safe-yaml)[source]: Switch to the Git repository so that applying patches works and add a patch. [arguments]: Enable tests and add a phase to set the TZ environment variable, as one of the tests depends on a certian timezone. * gnu/packages/patches/ruby-safe-yaml-add-require-time.patch: New file. * gnu/local.mk (dist_patch_DATA): Add new patch file.
Fixes issue with travis caused by [aws#80](dtao/safe_yaml#80) and fixed in [aws#90](dtao/safe_yaml#90) To test: bundle install bundle exec rake Signed-off-by: Sean Smith <[email protected]>
Fixes issue with travis caused by [#80](dtao/safe_yaml#80) and fixed in [#90](dtao/safe_yaml#90) To test: bundle install bundle exec rake Signed-off-by: Sean Smith <[email protected]>
mitigates dtao/safe_yaml#80 Change-Id: Icf63f6620d7112926d2c2d324bdd6b73a7eebae6
'time' is required by ruby-safe-yaml, however the version installed does not declare the requirement/. this patch adds the requirement to check_puppetrun before safe_yaml is loaded dtao/safe_yaml#80 Change-Id: I8f019c2e17a5656c659baf9b642e4382c0386e05
Update ruby-safe_yaml to 1.0.5. pkgsrc change: add "USE_LANGUAGES= # none". 1.0.5 ----- - fixed [#80](dtao/safe_yaml#80): uninitialized constant DateTime
I've been getting this error when using
SafeYAML
withoutbundle exec
. On a cursory look, it seems like the cause is a reference toDateTime
without pulling it in from the Ruby standard library. 😰Backtrace follows:
The text was updated successfully, but these errors were encountered: