mdub / config_hound Goto Github PK
View Code? Open in Web Editor NEWSniffs out config, wherever it may be
License: MIT License
Sniffs out config, wherever it may be
License: MIT License
Config Hound no longer accepts YAML documents with aliases:
# cat /app/test.yml
---
foo: &foo
bar:
<<: *foo
# bundle exec ruby -e "require 'config_hound'; ConfigHound.load('/app/test.yml')"
/usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:402:in `visit_Psych_Nodes_Alias': Unknown alias: foo (Psych::BadAlias)
from /usr/local/lib/ruby/2.4.0/psych/visitors/visitor.rb:16:in `visit'
from /usr/local/lib/ruby/2.4.0/psych/visitors/visitor.rb:6:in `accept'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:32:in `accept'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:338:in `block in revive_hash'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:336:in `each'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:336:in `each_slice'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:336:in `revive_hash'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:162:in `visit_Psych_Nodes_Mapping'
from /usr/local/lib/ruby/2.4.0/psych/visitors/visitor.rb:16:in `visit'
from /usr/local/lib/ruby/2.4.0/psych/visitors/visitor.rb:6:in `accept'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:32:in `accept'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:338:in `block in revive_hash'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:336:in `each'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:336:in `each_slice'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:336:in `revive_hash'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:162:in `visit_Psych_Nodes_Mapping'
from /usr/local/lib/ruby/2.4.0/psych/visitors/visitor.rb:16:in `visit'
from /usr/local/lib/ruby/2.4.0/psych/visitors/visitor.rb:6:in `accept'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:32:in `accept'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:311:in `visit_Psych_Nodes_Document'
from /usr/local/lib/ruby/2.4.0/psych/visitors/visitor.rb:16:in `visit'
from /usr/local/lib/ruby/2.4.0/psych/visitors/visitor.rb:6:in `accept'
from /usr/local/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:32:in `accept'
from /usr/local/lib/ruby/2.4.0/psych.rb:302:in `safe_load'
from /app/lib/config_hound/parser.rb:19:in `parse_yaml'
from /app/lib/config_hound/parser.rb:12:in `parse'
from /app/lib/config_hound/parser.rb:6:in `parse'
from /app/lib/config_hound/resource.rb:61:in `load'
from /app/lib/config_hound/loader.rb:29:in `load_source'
from /app/lib/config_hound/loader.rb:20:in `map'
from /app/lib/config_hound/loader.rb:20:in `load'
from /app/lib/config_hound.rb:10:in `load'
from -e:1:in `<main>'
The change appears related to the use of YAML#safe_load
. The internet informs me that we can enable aliases, even when using safe_load
.
Would you be happy for a PR that restores alias support?
When we try to use config_hound
to get a file with a specified version from S3 bucket. I found an issue that config_hound
can not get the right format.
For example, the file path is s3://test-s3-bucket/config.yml?versionId=version
, config_hound
will get the format is yml?versionId=version
.
We want to config_hound
support load configs from an s3 object with the specified version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.