-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add syslog & ostruct as runtime dependencies #9505
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can one of the admins verify this patch? |
bastelfreak
force-pushed
the
syslog
branch
2 times, most recently
from
October 21, 2024 18:46
fb644d7
to
d76cf57
Compare
bastelfreak
commented
Oct 21, 2024
The ostruct gem moves from default gems to a normal gem in Ruby 3.5. It raises the following warning on Ruby 3.3.5: ``` lib/puppet/util/command_line.rb:14: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0. ```
bastelfreak
force-pushed
the
syslog
branch
2 times, most recently
from
October 21, 2024 21:19
1bd312a
to
88a6410
Compare
bastelfreak
commented
Oct 21, 2024
QWolfp3
approved these changes
Oct 24, 2024
QWolfp3
approved these changes
Oct 24, 2024
QWolfp3
approved these changes
Oct 24, 2024
bastelfreak
force-pushed
the
syslog
branch
9 times, most recently
from
October 24, 2024 18:38
e2962f7
to
f1b3d09
Compare
QWolfp3
approved these changes
Oct 24, 2024
QWolfp3
approved these changes
Oct 24, 2024
I think this will work in both bundler and rubygems contexts: - if platform == 'x64-mingw32' || platform == 'x86-mingw32'
+ if (platform == 'x64-mingw32' || platform == 'x86-mingw32') || Gem.win_platform?
# ffi 1.16.0 - 1.16.2 are broken on Windows
spec.add_runtime_dependency('ffi', '>= 1.15.5', '< 1.17.0', '!= 1.16.0', '!= 1.16.1', '!= 1.16.2')
spec.add_runtime_dependency('minitar', '~> 0.9')
+ elsif !Gem.java_platform?
+ spec.add_runtime_dependency('syslog', '~> 0.1.2')
end
end |
The syslog gem moves from default gems to a normal gem in Ruby 3.4. It raises the following warning on Ruby 3.3.5: ``` lib/puppet/util/command_line.rb:14: warning: syslog was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add syslog to your Gemfile or gemspec to silence this warning. ```
joshcooper
approved these changes
Oct 24, 2024
gah this broke CI, I'll need to revert and resubmit after the runtime is fixed
|
Reverted in b2b381b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The syslog gem moves from default gems to a normal gem in Ruby 3.4. It raises the following warning on Ruby 3.3.5:
The ostruct gem moves from default gems to a normal gem in Ruby 3.5. It raises the following warning on Ruby 3.3.5: