nixpkgs/nixos/modules
talyz ed4a09c6f3 gitlab: Get rid of most 'already initialized constant'-warnings
On start, unicorn, sidekiq and other parts running ruby code emits
quite a few warnings similar to

/var/gitlab/state/config/application.rb:202: warning: already initialized constant Gitlab::Application::LOOSE_EE_APP_ASSETS
/nix/store/ysb0lgbzxp7a9y4yl8d4f9wrrzy9kafc-gitlab-ee-12.3.5/share/gitlab/config/application.rb:202: warning: previous definition of LOOSE_EE_APP_ASSETS was here
/var/gitlab/state/lib/gitlab.rb:38: warning: already initialized constant Gitlab::COM_URL
/nix/store/ysb0lgbzxp7a9y4yl8d4f9wrrzy9kafc-gitlab-ee-12.3.5/share/gitlab/lib/gitlab.rb:38: warning: previous definition of COM_URL was here

This seems to be caused by the same ruby files being evaluated
multiple times due to the paths being different - sometimes they're
loaded using the direct path and sometimes through a symlink, due to
our split between config and package data. To fix this, we make sure
that the offending files in the state directory always reference the
store path, regardless of that being the real file or a symlink.
2019-10-19 19:30:28 +02:00
..
config Revert "Merge pull request #71095 from flokli/pinentry-cleanup" 2019-10-16 20:28:21 -04:00
hardware nixos/steam-hardware: add uinput to boot.kernelModules 2019-10-06 11:34:54 +09:00
i18n/input-method Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
installer Revert "Merge pull request #71095 from flokli/pinentry-cleanup" 2019-10-16 20:28:21 -04:00
misc locate.nix: Don't create /var/cache 2019-10-08 21:45:42 +02:00
profiles Revert "Merge pull request #71095 from flokli/pinentry-cleanup" 2019-10-16 20:28:21 -04:00
programs Revert "Merge pull request #71095 from flokli/pinentry-cleanup" 2019-10-16 20:28:21 -04:00
security Merge pull request #67748 from typetetris/yubico-local-auth 2019-09-24 03:31:39 +01:00
services gitlab: Get rid of most 'already initialized constant'-warnings 2019-10-19 19:30:28 +02:00
system Merge pull request #69422 from arianvp/fix-machinectl 2019-10-12 14:12:44 +02:00
tasks Merge pull request #70240 from woffs/pr-etc-zpool.d 2019-10-15 11:45:52 +01:00
testing nixos/test: remove the stateVersion statement from the test-instrumentation 2019-06-03 15:05:24 +02:00
virtualisation Revert "Merge #67232: machinectl compliant NixOS installation" 2019-10-07 20:56:59 +02:00
module-list.nix nixos/pppd: init 2019-10-15 08:36:09 -07:00
rename.nix Revive systemd.coredump.enable 2019-10-07 20:28:13 +02:00