Skip to content

Commit

Permalink
gitaly: fix gitlab-shell-config path patching
Browse files Browse the repository at this point in the history
(cherry picked from commit 7060927)
  • Loading branch information
globin authored and flokli committed Jun 3, 2020
1 parent d181fdf commit 6bd20ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 323 deletions.

This file was deleted.

Expand Up @@ -33,7 +33,6 @@ in buildGoPackage rec {
# owner.
patches = [
./fix-executable-check.patch
./0001-Revert-Allow-gitlabshell-config-to-be-passed-in-thro.patch
];

goPackagePath = "gitlab.com/gitlab-org/gitaly";
Expand All @@ -55,8 +54,8 @@ in buildGoPackage rec {
# code by default which doesn't work in nixos because it's a
# read-only filesystem
substituteInPlace $ruby/gitlab-shell/lib/gitlab_config.rb --replace \
"File.join(ROOT_PATH, 'config.yml')" \
"'/run/gitlab/shell-config.yml'"
"ROOT_PATH.join('config.yml')" \
"Pathname.new('/run/gitlab/shell-config.yml')"
'';

outputs = [ "bin" "out" "ruby" ];
Expand Down

0 comments on commit 6bd20ee

Please sign in to comment.