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) almost 4 years ago. Updated almost 4 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.gemspecClosedhsbt (Hiroshi SHIBATA)Actions
Related to Ruby master - Bug #13808: lib/ipaddr.gemspec includes `git ls-files -z`Closedknu (Akinori MUSHA)Actions

Updated by hsbt (Hiroshi SHIBATA) almost 4 years ago

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

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

Updated by usa (Usaku NAKAMURA) almost 4 years ago

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

#3

Updated by hsbt (Hiroshi SHIBATA) almost 4 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) about 3 years ago

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

Updated by znz (Kazuhiro NISHIYAMA) almost 3 years ago

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

Also available in: Atom PDF