mfoemmel / fig

Fig is a utility for configuring environments and managing dependencies across a team of developers.
Other
81 stars 13 forks source link

Carriage returns in file cause parse error #44

Closed jramnani closed 14 years ago

jramnani commented 14 years ago

If there is a carriage return in the .fig or the package.fig file, fig will fail with the error:

downloading ftp://devnas/builds/Fig/repos/foo/1.0.0/.fig install failed, cleaning up ruby/1.8/gems/fig-0.1.14/lib/fig/parser.rb:16:in parse_package': /home/user/.fighome/repos/foo/1.0.0: Expected one of resource, retrieve, config at line 1, column 2 (byte 2) after (RuntimeError) from ruby/1.8/gems/fig-0.1.14/lib/fig/repository.rb:145:inread_package_from_file' from ruby/1.8/gems/fig-0.1.14/lib/fig/repository.rb:135:in read_package_from_directory' from ruby/1.8/gems/fig-0.1.14/lib/fig/repository.rb:118:inread_local_package' from ruby/1.8/gems/fig-0.1.14/lib/fig/repository.rb:163:in install_package' from ruby/1.8/gems/fig-0.1.14/lib/fig/repository.rb:108:inupdate_package' from ruby/1.8/gems/fig-0.1.14/lib/fig/repository.rb:98:in load_package' from ruby/1.8/gems/fig-0.1.14/lib/fig/environment.rb:121:inlookup_package' from ruby/1.8/gems/fig-0.1.14/lib/fig/environment.rb:73:in include_config' from ruby/1.8/gems/fig-0.1.14/lib/fig/environment.rb:64:inapply_config_statement' from ruby/1.8/gems/fig-0.1.14/lib/fig/environment.rb:35:in apply_config' from ruby/1.8/gems/fig-0.1.14/lib/fig/environment.rb:35:ineach' from ruby/1.8/gems/fig-0.1.14/lib/fig/environment.rb:35:in apply_config' from ruby/1.8/gems/fig-0.1.14/bin/fig:134 from ruby/1.8/bin/fig:19:inload' from ruby/1.8/bin/fig:19

jramnani commented 14 years ago

Fixed in commit 0faba2c07c6a97766b4dd84ce5c86decd4dbc624 Released in version v.0.1.16