mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00

Split the remove-hardcoded-locations patch into two separate patches, one for the ruby package and one for the go package. This is clearer and results in fewer rebuilds.
27 lines
993 B
Diff
27 lines
993 B
Diff
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb
|
|
index 0600a18..c46f2d7 100644
|
|
--- a/lib/gitlab_keys.rb
|
|
+++ b/lib/gitlab_keys.rb
|
|
@@ -2,7 +2,7 @@ class GitlabKeys # rubocop:disable Metrics/ClassLength
|
|
attr_accessor :auth_file, :key
|
|
|
|
def self.command(whatever)
|
|
- "#{ROOT_PATH}/bin/gitlab-shell #{whatever}"
|
|
+ "/run/current-system/sw/bin/gitlab-shell #{whatever}"
|
|
end
|
|
|
|
def self.command_key(key_id)
|
|
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb
|
|
index 2cb76a8..f59ad5e 100644
|
|
--- a/lib/gitlab_shell.rb
|
|
+++ b/lib/gitlab_shell.rb
|
|
@@ -195,7 +195,8 @@ class GitlabShell # rubocop:disable Metrics/ClassLength
|
|
|
|
args = [executable, gitaly_address, json_args]
|
|
# We use 'chdir: ROOT_PATH' to let the next executable know where config.yml is.
|
|
- Kernel.exec(env, *args, unsetenv_others: true, chdir: ROOT_PATH)
|
|
+ # Except we don't, because we're already in the right directory on nixos!
|
|
+ Kernel.exec(env, *args, unsetenv_others: true)
|
|
end
|
|
|
|
def api
|