Project

General

Profile

Bug #12736

`make install` says `fatal: Not a git repository (or any of the parent directories): .git`

Added by znz (Kazuhiro NISHIYAMA) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.4.0dev (2016-09-07 trunk 56091) [x86_64-linux]
[ruby-dev:49778]

Description

make install の時に fatal: Not a git repository (or any of the parent directories): .git というメッセージが2回出ます。

ext/psych/psych.gemspec と lib/rdoc/rdoc.gemspec の

s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }

が原因のようです。


Related issues

Related to Ruby master - Bug #13423: error in etc.gemspecClosedActions
Related to Ruby master - Bug #13808: lib/ipaddr.gemspec includes `git ls-files -z`ClosedActions

Associated revisions

Revision c45a8f8b
Added by hsbt (Hiroshi SHIBATA) about 3 years ago

  • ext/psych/psych.gemspec, lib/rdoc/rdoc.gemspec: Use file list instead of git output. It shows warning message when invoke make install [Bug #12736][ruby-dev:49778]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 56104
Added by hsbt (Hiroshi SHIBATA) about 3 years ago

  • ext/psych/psych.gemspec, lib/rdoc/rdoc.gemspec: Use file list instead of git output. It shows warning message when invoke make install [Bug #12736][ruby-dev:49778]

Revision 56104
Added by hsbt (Hiroshi SHIBATA) about 3 years ago

  • ext/psych/psych.gemspec, lib/rdoc/rdoc.gemspec: Use file list instead of git output. It shows warning message when invoke make install [Bug #12736][ruby-dev:49778]

Revision 56104
Added by hsbt (Hiroshi SHIBATA) about 3 years ago

  • ext/psych/psych.gemspec, lib/rdoc/rdoc.gemspec: Use file list instead of git output. It shows warning message when invoke make install [Bug #12736][ruby-dev:49778]

Revision 56104
Added by hsbt (Hiroshi SHIBATA) about 3 years ago

  • ext/psych/psych.gemspec, lib/rdoc/rdoc.gemspec: Use file list instead of git output. It shows warning message when invoke make install [Bug #12736][ruby-dev:49778]

History

Updated by hsbt (Hiroshi SHIBATA) about 3 years ago

  • Assignee set to hsbt (Hiroshi SHIBATA)
  • Status changed from Open to Assigned

数が多くて厳しいのですがハードコードする方向に修正します。

Updated by usa (Usaku NAKAMURA) about 3 years ago

rubygemsにこれを行うメソッドを追加すべきなんじゃないでしょうかね。

#3

Updated by hsbt (Hiroshi SHIBATA) about 3 years ago

  • Status changed from Assigned to Closed

Applied in changeset r56104.


  • ext/psych/psych.gemspec, lib/rdoc/rdoc.gemspec: Use file list instead of git output. It shows warning message when invoke make install [Bug #12736][ruby-dev:49778]
#4

Updated by znz (Kazuhiro NISHIYAMA) over 2 years ago

  • Related to Bug #13423: error in etc.gemspec added
#5

Updated by znz (Kazuhiro NISHIYAMA) over 2 years ago

  • Related to Bug #13808: lib/ipaddr.gemspec includes `git ls-files -z` added

Also available in: Atom PDF