Today when I ran rake in my Radiant 0.9rc1 project I got a new error - see
edited stack trace below. The problem seems to be that release.rake builds a
gem specification when the namespace is defined - not when the task is run -
and that blows up because I have too many assets directories that need to be
excluded from the gem.

There's probably a smart way to finesse this conflict, but I think the easy
way is just not to build the gem specification unless we're actually running
'rake gemspec' - which is less likely to happen in a working directory full
of git-ignored folders. I'll test and submit a patch if I can find time.

--Erik Ostrom
  [email protected]

$ rake --trace db:development:staging:clone
rake aborted!
regular expression too big:
/((?-mix:(^|[\/\\])CVS([\/\\]|$)))|((?-mix:(^|[\/\\])\.svn([\/\\]|$)))|((?-mix:\.bak$))|((?-mix:~$))|(public\/assets\/._1)|(public\/assets\/._10)|(public\/assets\/._100)|(public\/assets\/._101)|(public\/assets\/._102)|(public\/assets\/._103)|(public\/assets\/._104)|(public\/assets\/._105)|(public\/assets\/._106)|(public\/assets\/._107)|(public\/assets\/._108)|(public\/assets\/._109)|(public\/assets\/._11)|(public\/assets\/._110)|(public\/assets\/._111)|(public\/assets\/._112)|(public\/assets\/._113)|(public\/assets\/._114)|(public\/assets\/._115)|(public\/assets\/._116)|(public\/assets\/._117)|(public\/assets\/._118)|(public\/assets\/._119)|(public\/assets\/._12)|(public\/assets\/._120)|(public\/assets\/._121)|(public\/assets\/._122)|(public\/assets\/._123)|(public\/assets\/._124)|(public\/assets\/._125)|(public\/assets\/._126)|(public\/assets\/._127)|(public\/assets\/._128)|(public\/assets\/._129)|(public\/assets\/._13)|(public\/assets\/._130)|(public\/assets\/._131)|(public\/ass
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1427:in `initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1427:in `new'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1427:in
`calculate_exclude_regexp'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1565:in `exclude?'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1558:in `add_matching'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1557:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1557:in `add_matching'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1434:in `resolve_add'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1404:in `resolve'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1404:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1404:in `resolve'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1374:in `to_a'
vendor/radiant/lib/tasks/release.rake:70
/Library/Ruby/Site/1.8/rubygems/specification.rb:421:in `initialize'
vendor/radiant/lib/tasks/release.rake:23:in `new'
vendor/radiant/lib/tasks/release.rake:23
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1882:in `in_namespace'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:910:in `namespace'
vendor/radiant/lib/tasks/release.rake:22
vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in
`load_without_new_constant_marking'
vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in
`load'
vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'
vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in
`load'
vendor/radiant/Rakefile:10
vendor/radiant/Rakefile:10:in `each'
vendor/radiant/Rakefile:10
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1620:in `load'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1620:in `load'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2451:in `load_imports'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2390:in
`raw_load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to