-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Don't display 'fatal: Not a git repository (or any of the parent directories): .git' if git package vendored #2039
Comments
How can I vendor all the gems and not need git at all in production? |
Why are there 10 instances of |
"Could not find libv8-3.3.10.4 in any of the sources" is because it vendored a darwin gem instead of the source gem - libv8-3.3.10.4-x86_64-darwin-11.gem |
It looks like the vendored gems arrived ok (and I worked around #2040 by adding the libv8.gem into vendor/cache explicitly). Note, the entire application was ported to production as a tarball and not a git repository. How can I tell bundler that its not a git repo any more and that all the vendored gems are where they should be (vendor/cache) and to be happy about that and not spew out 10 warning messages? |
Updating title to match the issue - the vendored package installs correctly but I get ugly warnings whenever I run any bundle commands:
|
Updated to |
This is happening for me as well and I dug into it a bit. The error message is not coming from bundler but from git itself. The errors are coming from git commands executing inside of gemspecs. Almost always the command is Unfortunately using I am not a Bundler contributor but I am not sure how Bundler can fix this problem short of not loading the gemspec files at all. However, these errors are really annoying and it makes it look like bundler has a bug. |
Yeah, I think this is the same bug that was recently fixed by explicitly setting |
The rubygems site has a good alternative to spec.files = Dir['lib/**/*.rb'] + Dir['bin/*']
spec.files += Dir['[A-Z]*'] + Dir['test/**/*']
spec.files.reject! { |fn| fn.include? "CVS" } |
@indirect Ahhh! I totally forgot about .gitignore. Fortunately in my case I'm using internal git gems so the impact is small. Thanks for pointing out the other issue! |
Any updates here? I'm having the same issue, although it appears to only occur on Heroku. Local commands work just fine. |
This, at least in my case, is happening because Bundler removes the
Looks like this has been around since support for packaging gems from Git was added in 6ef6e75. Can anyone explain the rationale behind this? Is it just a space saving effort? @josevalim? Personally, I'm fine with needing Git installed in production, but these errors will happen either way. |
The |
That sounds reasonable. I don't know much about Bundler internals. Would that be as simple as looking for any |
Here's my first pass at this: bison@d79b6a5c4297aeaec00553245320722910a24d79 It seems to work for me, but I have no idea if it's The Right Thing™. |
Hey guys, I've fixed this in the brand new 1.3.0.pre2 release. Can you try it out and let me know how it's working? Thanks. |
Works great here. Thanks! |
have the same issue with |
The use of `git ls-files` in the gemspec file causes fatal error warning when loading the gem. See rubygems/bundler#2039 Solution was found here: rubygems/bundler#2039 (comment)
The use of `git ls-files` in the gemspec file causes fatal error warning when loading the gem. See rubygems/bundler#2039 Solution was found here: rubygems/bundler#2039 (comment)
The use of `git ls-files` in the gemspec file causes fatal error warning when loading the gem. See rubygems/bundler#2039 Solution was found here: rubygems/bundler#2039 (comment)
i am getting problem in Git bash HolySpirit@HolySpirit-PC MINGW64 / |
The use of `git ls-files` in the gemspec file causes fatal error warning when loading the gem. See rubygems/bundler#2039 Solution was found here: rubygems/bundler#2039 (comment)
The use of `git ls-files` in the gemspec file causes fatal error warning when loading the gem. See rubygems/bundler#2039
[with bundler 1.2.0.rc on local & production machines]
If an application's Gemfile uses git repos, such as https://github.com/gitlabhq/gitlabhq/blob/master/Gemfile, and I run
bundle package --all
, and then in production runbundle install --local --deployment --without development test
it gives the following error:The text was updated successfully, but these errors were encountered: