From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: git-annex: problematic shebangs in .git/hooks/pre-commit? Date: Thu, 23 Aug 2018 12:02:23 -0400 Message-ID: <876001xe9c.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fss47-0007L9-1s for guix-devel@gnu.org; Thu, 23 Aug 2018 12:02:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fss41-0006E3-WC for guix-devel@gnu.org; Thu, 23 Aug 2018 12:02:30 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:59184) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fss41-0006Df-OW for guix-devel@gnu.org; Thu, 23 Aug 2018 12:02:25 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel Hello, Thanks for packaging git-annex, Tim! I'm excited to see it in Guix. I'm wondering whether the shebang patching in .git/hooks/pre-commit will cause a problem. Using the patched shellPath_portable, 'git annex init' generates a hook like this: % cat .git/hooks/pre-commit #!/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh # automatically configured by git-annex git annex pre-commit . But won't this break if that particular bash-mininimal is garbage collected?