Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7d31bbceaa12
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dca7ec628e55
Choose a head ref
  • 8 commits
  • 15 files changed
  • 3 contributors

Commits on Mar 5, 2020

  1. Copy the full SHA
    cf3cc7a View commit details
  2. gitaly: 1.83.0 -> 12.8.1

    (cherry-picked from commit facef28)
    talyz authored and Milan Pässler committed Mar 5, 2020
    Copy the full SHA
    e72a27e View commit details
  3. gitlab-workhorse: 8.20.0 -> 8.21.0

    (cherry-picked from commit f2bb523)
    talyz authored and Milan Pässler committed Mar 5, 2020
    Copy the full SHA
    802ff69 View commit details
  4. gitlab-shell: Change name from gitlab-shell-go to gitlab-shell

    This is left over from when gitlab-shell had a ruby part and a go
    part. The ruby part is now gone, so let's call the go part
    gitlab-shell.
    
    (cherry-picked from commit a3b2828)
    talyz authored and Milan Pässler committed Mar 5, 2020
    Copy the full SHA
    7537484 View commit details
  5. bundlerEnv: Add option to copy gem files instead of symlinking

    The way ruby loads gems and keeps track of their paths seems to not
    always work very well when the gems are accessed through
    symlinks. Ruby will then complain that the same files are loaded
    multiple times; it relies on the file's full path to determine whether
    the file is loaded or not.
    
    This adds an option to simply copy all gem files into the environment
    instead, which gets rid of this issue, but may instead result in major
    file duplication.
    
    (cherry-picked from commit affcf9b)
    talyz authored and Milan Pässler committed Mar 5, 2020
    Copy the full SHA
    00a06a7 View commit details
  6. gitaly: Copy gem files into bundler env instead of symlinking

    This fixes issue #79374, where gitaly prints warning messages on the
    client side when running push or fetch.
    
    (cherry-picked from commit 74769b6)
    talyz authored and Milan Pässler committed Mar 5, 2020
    Copy the full SHA
    1b2ab5d View commit details
  7. gitlab: 12.8.1 -> 12.8.2 (#81803)

    Includes multiple security fixes mentioned in
    https://about.gitlab.com/releases/2020/03/04/gitlab-12-dot-8-dot-2-released/
    (unfortunately, no CVE numbers as of yet)
    
     - Directory Traversal to Arbitrary File Read
     - Account Takeover Through Expired Link
     - Server Side Request Forgery Through Deprecated Service
     - Group Two-Factor Authentication Requirement Bypass
     - Stored XSS in Merge Request Pages
     - Stored XSS in Merge Request Submission Form
     - Stored XSS in File View
     - Stored XSS in Grafana Integration
     - Contribution Analytics Exposed to Non-members
     - Incorrect Access Control in Docker Registry via Deploy Tokens
     - Denial of Service via Permission Checks
     - Denial of Service in Design For Public Issue
     - GitHub Tokens Displayed in Plaintext on Integrations Page
     - Incorrect Access Control via LFS Import
     - Unescaped HTML in Header
     - Private Merge Request Titles Leaked via Widget
     - Project Namespace Exposed via Vulnerability Feedback Endpoint
     - Denial of Service Through Recursive Requests
     - Project Authorization Not Being Updated
     - Incorrect Permission Level For Group Invites
     - Disclosure of Private Group Epic Information
     - User IP Address Exposed via Badge images
     - Update postgresql (GitLab Omnibus)
    
    (cherry-picked from commit c25756f)
    Milan committed Mar 5, 2020
    Copy the full SHA
    3f97de1 View commit details
  8. create-amis: Add eu-north-1

    (cherry picked from commit 4e5b057)
    adisbladis committed Mar 5, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    dca7ec6 View commit details
2 changes: 1 addition & 1 deletion nixos/maintainers/scripts/ec2/create-amis.sh
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ state_dir=$HOME/amis/ec2-images
home_region=eu-west-1
bucket=nixos-amis

regions=(eu-west-1 eu-west-2 eu-west-3 eu-central-1
regions=(eu-west-1 eu-west-2 eu-west-3 eu-central-1 eu-north-1
us-east-1 us-east-2 us-west-1 us-west-2
ca-central-1
ap-southeast-1 ap-southeast-2 ap-northeast-1 ap-northeast-2
12 changes: 6 additions & 6 deletions pkgs/applications/version-management/gitlab/data.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "12.7.6",
"repo_hash": "092c6n2jg8himmcc23gh3gvmx0y272kwk00cj1s2k4b92dlzvm18",
"version": "12.8.2",
"repo_hash": "1d27s61kglryr5pashwfq55z7fh16fxkx1m4gc82xihwfzarf4x9",
"owner": "gitlab-org",
"repo": "gitlab",
"rev": "v12.7.6-ee",
"rev": "v12.8.2-ee",
"passthru": {
"GITALY_SERVER_VERSION": "1.83.0",
"GITLAB_PAGES_VERSION": "1.12.0",
"GITALY_SERVER_VERSION": "12.8.2",
"GITLAB_PAGES_VERSION": "1.16.0",
"GITLAB_SHELL_VERSION": "11.0.0",
"GITLAB_WORKHORSE_VERSION": "8.20.0"
"GITLAB_WORKHORSE_VERSION": "8.21.0"
}
}
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/gitlab/gitaly/Gemfile
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ gem 'bundler', '>= 1.17.3'
gem 'rugged', '~> 0.28'
gem 'github-linguist', '~> 7.5', require: 'linguist'
gem 'gitlab-markup', '~> 1.7.0'
gem 'activesupport', '~> 5.2.3'
gem 'activesupport', '6.0.2'
gem 'rdoc', '~> 6.0'
gem 'gitlab-gollum-lib', '~> 4.2.7.7', require: false
gem 'gitlab-gollum-rugged_adapter', '~> 0.4.4.2', require: false
@@ -16,7 +16,7 @@ gem 'faraday', '~> 0.12'
gem 'rbtrace', require: false

# Labkit provides observability functionality
gem 'gitlab-labkit', '~> 0.5.0'
gem 'gitlab-labkit', '~> 0.9.1'

# Detects the open source license the repository includes
# This version needs to be in sync with GitLab CE/EE
46 changes: 24 additions & 22 deletions pkgs/applications/version-management/gitlab/gitaly/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -2,32 +2,33 @@ GEM
remote: https://rubygems.org/
specs:
abstract_type (0.0.7)
actionpack (5.2.3)
actionview (= 5.2.3)
activesupport (= 5.2.3)
actionpack (6.0.2)
actionview (= 6.0.2)
activesupport (= 6.0.2)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.3)
activesupport (= 5.2.3)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actionview (6.0.2)
activesupport (= 6.0.2)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activesupport (5.2.3)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activesupport (6.0.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2)
adamantium (0.2.0)
ice_nine (~> 0.11.0)
memoizable (~> 0.4.0)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
ast (2.4.0)
binding_ninja (0.2.3)
builder (3.2.3)
builder (3.2.4)
charlock_holmes (0.7.6)
coderay (1.1.2)
concord (0.1.5)
@@ -36,11 +37,11 @@ GEM
concurrent-ruby (1.1.5)
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.5)
crass (1.0.6)
diff-lcs (1.3)
docile (1.3.2)
equalizer (0.0.11)
erubi (1.8.0)
erubi (1.9.0)
escape_utils (1.2.1)
factory_bot (5.0.2)
activesupport (>= 4.2.0)
@@ -71,9 +72,9 @@ GEM
diff-lcs (~> 1.1)
mime-types (>= 1.16)
posix-spawn (~> 0.3)
gitlab-labkit (0.5.2)
actionpack (~> 5)
activesupport (~> 5)
gitlab-labkit (0.9.1)
actionpack (>= 5.0.0, < 6.1.0)
activesupport (>= 5.0.0, < 6.1.0)
grpc (~> 1.19)
jaeger-client (~> 0.10)
opentracing (~> 0.4)
@@ -88,7 +89,7 @@ GEM
google-protobuf (~> 3.8)
googleapis-common-protos-types (~> 1.0)
hashdiff (0.3.9)
i18n (1.6.0)
i18n (1.8.2)
concurrent-ruby (~> 1.0)
ice_nine (0.11.2)
jaeger-client (0.10.0)
@@ -110,7 +111,7 @@ GEM
mime-types-data (3.2019.0331)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.11.3)
minitest (5.14.0)
msgpack (1.3.1)
multipart-post (2.0.0)
nokogiri (1.10.7)
@@ -132,7 +133,7 @@ GEM
coderay (~> 1.1.0)
method_source (~> 0.9.0)
public_suffix (3.0.3)
rack (2.0.7)
rack (2.1.2)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails-dom-testing (2.0.3)
@@ -146,8 +147,8 @@ GEM
msgpack (>= 0.4.3)
optimist (>= 3.0.0)
rdoc (6.2.0)
redis (4.1.2)
rouge (3.11.0)
redis (4.1.3)
rouge (3.15.0)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
@@ -192,7 +193,7 @@ GEM
thread_safe (0.3.6)
thrift (0.11.0.0)
timecop (0.9.1)
tzinfo (1.2.5)
tzinfo (1.2.6)
thread_safe (~> 0.1)
unicode-display_width (1.6.0)
unparser (0.4.5)
@@ -208,19 +209,20 @@ GEM
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
zeitwerk (2.2.2)

PLATFORMS
ruby

DEPENDENCIES
activesupport (~> 5.2.3)
activesupport (= 6.0.2)
bundler (>= 1.17.3)
factory_bot
faraday (~> 0.12)
github-linguist (~> 7.5)
gitlab-gollum-lib (~> 4.2.7.7)
gitlab-gollum-rugged_adapter (~> 0.4.4.2)
gitlab-labkit (~> 0.5.0)
gitlab-labkit (~> 0.9.1)
gitlab-markup (~> 1.7.0)
google-protobuf (~> 3.8.0)
grpc (~> 1.24.0)
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{ stdenv, fetchFromGitLab, buildGoPackage, ruby, bundlerEnv, pkgconfig, libgit2 }:
{ stdenv, fetchFromGitLab, fetchFromGitHub, buildGoPackage, ruby,
bundlerEnv, pkgconfig, libgit2 }:

let
rubyEnv = bundlerEnv rec {
name = "gitaly-env";
inherit ruby;
copyGemFiles = true;
gemdir = ./.;
gemset =
let x = import (gemdir + "/gemset.nix");
@@ -17,14 +19,14 @@ let
};
};
in buildGoPackage rec {
version = "1.83.0";
version = "12.8.2";
pname = "gitaly";

src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitaly";
rev = "v${version}";
sha256 = "1vwa38mhnxyncrrvp45d8s6fg94xaq8c71d7qh9ip77db0ak45kh";
sha256 = "1zc44y5yl799vqg12w3iaivk4xwj9i4k6f198svplipa760nl9ic";
};

# Fix a check which assumes that hook files are writeable by their
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/gitlab/gitaly/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 41 additions & 27 deletions pkgs/applications/version-management/gitlab/gitaly/gemset.nix
Original file line number Diff line number Diff line change
@@ -13,32 +13,32 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1s2iay17i2k0xx36cmnpbrmr5w6x70jk7fq1d8w70xcdw5chm0w1";
sha256 = "0zg96vjjw1kbli6nk6cyk64zfh4lgpl7fqx38ncbgfacl4dq7y0b";
type = "gem";
};
version = "5.2.3";
version = "6.0.2";
};
actionview = {
dependencies = ["activesupport" "builder" "erubi" "rails-dom-testing" "rails-html-sanitizer"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1v49rgf8305grqf6gq7qa47qhamr369igyy0giycz60x86afyr4h";
sha256 = "1bfh9z3n98c76c6jdp6avh75wsckxyp74r59hmgnqdhfznbkppv4";
type = "gem";
};
version = "5.2.3";
version = "6.0.2";
};
activesupport = {
dependencies = ["concurrent-ruby" "i18n" "minitest" "tzinfo"];
dependencies = ["concurrent-ruby" "i18n" "minitest" "tzinfo" "zeitwerk"];
groups = ["default" "development" "test"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "110vp4frgkw3mpzlmshg2f2ig09cknls2w68ym1r1s39d01v0mi8";
sha256 = "1brlp5pmawb2hqdybjb732zxxkamcmis6px3wyh09rjlc0gqnzzz";
type = "gem";
};
version = "5.2.3";
version = "6.0.2";
};
adamantium = {
dependencies = ["ice_nine" "memoizable"];
@@ -83,10 +83,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1";
sha256 = "045wzckxpwcqzrjr353cxnyaxgf0qg22jh00dcx7z38cys5g1jlr";
type = "gem";
};
version = "3.2.3";
version = "3.2.4";
};
charlock_holmes = {
source = {
@@ -137,10 +137,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "030sc98kjrb36rh7g21qsbdfxrj6knsjkx0mn3b7gig8zknwhp2f";
sha256 = "0pfl5c0pyqaparxaqxi6s4gfl21bdldwiawrc0aknyvflli60lfw";
type = "gem";
};
version = "1.0.5";
version = "1.0.6";
};
diff-lcs = {
source = {
@@ -173,10 +173,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1";
sha256 = "1nwzxnqhr31fn7nbqmffcysvxjdfl3bhxi0bld5qqhcnfc1xd13x";
type = "gem";
};
version = "1.8.0";
version = "1.9.0";
};
escape_utils = {
source = {
@@ -283,10 +283,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1j06gl4ksd83rycg3fb46bb77iw74i1ivs5li6pyf5klrxjq8k3h";
sha256 = "1s1cgnnzlnfglsh5r0iihgvyasa2zbqkyrrnbxshvnkddb10i94z";
type = "gem";
};
version = "0.5.2";
version = "0.9.1";
};
gitlab-markup = {
groups = ["default"];
@@ -355,10 +355,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1hfxnlyr618s25xpafw9mypa82qppjccbh292c4l3bj36az7f6wl";
sha256 = "0jwrd1l4mxz06iyx6053lr6hz2zy7ah2k3ranfzisvych5q19kwm";
type = "gem";
};
version = "1.6.0";
version = "1.8.2";
};
ice_nine = {
source = {
@@ -482,12 +482,14 @@
version = "2.4.0";
};
minitest = {
groups = ["default" "development" "test"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq";
sha256 = "0g73x65hmjph8dg1h3rkzfg7ys3ffxm35hj35grw75fixmq53qyz";
type = "gem";
};
version = "5.11.3";
version = "5.14.0";
};
msgpack = {
groups = ["default"];
@@ -613,10 +615,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0z90vflxbgjy2n84r7mbyax3i2vyvvrxxrf86ljzn5rw65jgnn2i";
sha256 = "04qa0ry26hxfwkmvhi0fjlvbm8irzg66ahnpx2pp3bl6qbdc0i8w";
type = "gem";
};
version = "2.0.7";
version = "2.1.2";
};
rack-test = {
dependencies = ["rack"];
@@ -683,20 +685,20 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1mymdx7s5sr4mablklaipz679ckczsiigswm1g2v5mc93yj5amw3";
sha256 = "08v2y91q1pmv12g9zsvwj66w3s8j9d82yrmxgyv4y4gz380j3wyh";
type = "gem";
};
version = "4.1.2";
version = "4.1.3";
};
rouge = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1zsyv6abqrk7lpql5f1ja4m88bfy9qndi8xykpss6cpvjdmi3ydb";
sha256 = "1ipgdir89a6pp1zscl2fkb99pppa7c513pk4wvis157bn8p9hlrx";
type = "gem";
};
version = "3.11.0";
version = "3.15.0";
};
rspec = {
dependencies = ["rspec-core" "rspec-expectations" "rspec-mocks"];
@@ -881,12 +883,14 @@
};
tzinfo = {
dependencies = ["thread_safe"];
groups = ["default" "development" "test"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1fjx9j327xpkkdlxwmkl3a8wqj7i4l4jwlrv3z13mg95z9wl253z";
sha256 = "04f18jdv6z3zn3va50rqq35nj3izjpb72fnf21ixm7vanq6nc4fp";
type = "gem";
};
version = "1.2.5";
version = "1.2.6";
};
unicode-display_width = {
groups = ["default" "development" "test"];
@@ -926,4 +930,14 @@
};
version = "3.4.2";
};
zeitwerk = {
groups = ["default" "development" "test"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0jywi63w1m2b2w9fj9rjb9n3imf6p5bfijfmml1xzdnsrdrjz0x1";
type = "gem";
};
version = "2.2.2";
};
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, fetchFromGitLab, buildGoPackage, ruby }:

buildGoPackage rec {
pname = "gitlab-shell-go";
pname = "gitlab-shell";
version = "11.0.0";
src = fetchFromGitLab {
owner = "gitlab-org";
Original file line number Diff line number Diff line change
@@ -3,13 +3,13 @@
buildGoPackage rec {
pname = "gitlab-workhorse";

version = "8.20.0";
version = "8.21.0";

src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-workhorse";
rev = "v${version}";
sha256 = "0a64qrbyxvpqgf5ksczn3kisbhyx6fcw58g5nlag4jnjj6w5i0wr";
sha256 = "04vhshm9lwnx77q9l7znxwkvvwm3gxgxw12y1xwahfilj352xr7q";
};

goPackagePath = "gitlab.com/gitlab-org/gitlab-workhorse";
34 changes: 20 additions & 14 deletions pkgs/applications/version-management/gitlab/rubyEnv/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'rails', '5.2.3'
gem 'rails', '6.0.2'

gem 'bootsnap', '~> 1.4'

@@ -26,14 +26,14 @@ gem 'marginalia', '~> 1.8.0'

# Authentication libraries
gem 'devise', '~> 4.6'
gem 'doorkeeper', '~> 4.3'
gem 'doorkeeper-openid_connect', '~> 1.5'
gem 'doorkeeper', '~> 5.0.2'
gem 'doorkeeper-openid_connect', '~> 1.6.3'
gem 'omniauth', '~> 1.8'
gem 'omniauth-auth0', '~> 2.0.0'
gem 'omniauth-azure-oauth2', '~> 0.0.9'
gem 'omniauth-cas3', '~> 1.1.4'
gem 'omniauth-facebook', '~> 4.0.0'
gem 'omniauth-github', '~> 1.3'
gem 'omniauth-github', '~> 1.4'
gem 'omniauth-gitlab', '~> 1.0.2'
gem 'omniauth-google-oauth2', '~> 0.6.0'
gem 'omniauth-kerberos', '~> 0.3.0', group: :kerberos
@@ -67,7 +67,7 @@ gem 'u2f', '~> 0.2.1'
gem 'validates_hostname', '~> 1.0.6'
gem 'rubyzip', '~> 2.0.0', require: 'zip'
# GitLab Pages letsencrypt support
gem 'acme-client', '~> 2.0.2'
gem 'acme-client', '~> 2.0.5'

# Browser detection
gem 'browser', '~> 2.5'
@@ -84,10 +84,10 @@ gem 'net-ldap'
# API
gem 'grape', '~> 1.1.0'
gem 'grape-entity', '~> 0.7.1'
gem 'rack-cors', '~> 1.0.0', require: 'rack/cors'
gem 'rack-cors', '~> 1.0.6', require: 'rack/cors'

# GraphQL API
gem 'graphql', '~> 1.9.11'
gem 'graphql', '~> 1.9.12'
# NOTE: graphiql-rails v1.5+ doesn't work: https://gitlab.com/gitlab-org/gitlab/issues/31771
# TODO: remove app/views/graphiql/rails/editors/show.html.erb when https://github.com/rmosolgo/graphiql-rails/pull/71 is released:
# https://gitlab.com/gitlab-org/gitlab/issues/31747
@@ -149,7 +149,7 @@ gem 'wikicloth', '0.8.1'
gem 'asciidoctor', '~> 2.0.10'
gem 'asciidoctor-include-ext', '~> 0.3.1', require: false
gem 'asciidoctor-plantuml', '0.0.10'
gem 'rouge', '~> 3.11.0'
gem 'rouge', '~> 3.15.0'
gem 'truncato', '~> 0.7.11'
gem 'bootstrap_form', '~> 4.2.0'
gem 'nokogiri', '~> 1.10.5'
@@ -301,11 +301,11 @@ gem 'sentry-raven', '~> 2.9'
gem 'premailer-rails', '~> 1.10.3'

# LabKit: Tracing and Correlation
gem 'gitlab-labkit', '0.8.0'
gem 'gitlab-labkit', '0.9.1'

# I18n
gem 'ruby_parser', '~> 3.8', require: false
gem 'rails-i18n', '~> 5.1'
gem 'rails-i18n', '~> 6.0'
gem 'gettext_i18n_rails', '~> 1.8.0'
gem 'gettext_i18n_rails_js', '~> 1.3'
gem 'gettext', '~> 3.2.2', require: false, group: :development
@@ -349,7 +349,7 @@ end
group :development, :test do
gem 'bullet', '~> 6.0.2', require: !!ENV['ENABLE_BULLET']
gem 'pry-byebug', '~> 3.5.1', platform: :mri
gem 'pry-rails', '~> 0.3.4'
gem 'pry-rails', '~> 0.3.9'

gem 'awesome_print', require: false

@@ -381,8 +381,6 @@ group :development, :test do

gem 'knapsack', '~> 1.17'

gem 'stackprof', '~> 0.2.13', require: false

gem 'simple_po_parser', '~> 1.1.2', require: false

gem 'timecop', '~> 0.8.0'
@@ -427,6 +425,7 @@ gem 'email_reply_trimmer', '~> 0.1'
gem 'html2text'

gem 'ruby-prof', '~> 1.0.0'
gem 'stackprof', '~> 0.2.15', require: false
gem 'rbtrace', '~> 0.4', require: false
gem 'memory_profiler', '~> 0.9', require: false
gem 'benchmark-memory', '~> 0.1', require: false
@@ -456,7 +455,7 @@ group :ed25519 do
end

# Gitaly GRPC protocol definitions
gem 'gitaly', '~> 1.81.0'
gem 'gitaly', '~> 1.86.0'

gem 'grpc', '~> 1.24.0'

@@ -486,3 +485,10 @@ gem 'liquid', '~> 4.0'

# LRU cache
gem 'lru_redux'

gem 'erubi', '~> 1.9.0'

# Locked as long as quoted-printable encoding issues are not resolved
# Monkey-patched in `config/initializers/mail_encoding_patch.rb`
# See https://gitlab.com/gitlab-org/gitlab/issues/197386
gem 'mail', '= 2.7.1'
178 changes: 100 additions & 78 deletions pkgs/applications/version-management/gitlab/rubyEnv/Gemfile.lock

Large diffs are not rendered by default.

213 changes: 123 additions & 90 deletions pkgs/applications/version-management/gitlab/rubyEnv/gemset.nix

Large diffs are not rendered by default.

960 changes: 512 additions & 448 deletions pkgs/applications/version-management/gitlab/yarnPkgs.nix

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions pkgs/development/ruby-modules/bundled-common/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, runCommand, ruby, lib
{ stdenv, runCommand, ruby, lib, rsync
, defaultGemConfig, buildRubyGem, buildEnv
, makeWrapper
, bundler
@@ -13,6 +13,7 @@
, lockfile ? null
, gemset ? null
, ruby ? defs.ruby
, copyGemFiles ? false # Copy gem files instead of symlinking
, gemConfig ? defaultGemConfig
, postBuild ? null
, document ? []
@@ -96,7 +97,8 @@ let

envPaths = lib.attrValues gems ++ lib.optional (!hasBundler) bundler;

basicEnv = buildEnv {

basicEnvArgs = {
inherit buildInputs ignoreCollisions;

name = name';
@@ -154,5 +156,17 @@ let
};
};
};

basicEnv =
if copyGemFiles then
runCommand name' basicEnvArgs ''
mkdir -p $out
for i in $paths; do
${rsync}/bin/rsync -a $i/lib $out/
done
eval "$postBuild"
''
else
buildEnv basicEnvArgs;
in
basicEnv
57 changes: 36 additions & 21 deletions pkgs/development/ruby-modules/bundler-env/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ ruby, lib, callPackage, defaultGemConfig, buildEnv, bundler }@defs:
{ ruby, lib, callPackage, defaultGemConfig, buildEnv, runCommand
, bundler, rsync
}@defs:

{ name ? null
, pname ? null
@@ -8,6 +10,7 @@
, gemset ? null
, groups ? ["default"]
, ruby ? defs.ruby
, copyGemFiles ? false # Copy gem files instead of symlinking
, gemConfig ? defaultGemConfig
, postBuild ? null
, document ? []
@@ -38,23 +41,35 @@ in
if pname == null then
basicEnv // { inherit name basicEnv; }
else
(buildEnv {
inherit ignoreCollisions;

name = basicEnv.name;

paths = envPaths;
pathsToLink = [ "/lib" ];

postBuild = genStubsScript {
inherit lib ruby bundler groups;
confFiles = basicEnv.confFiles;
binPaths = [ basicEnv.gems.${pname} ];
} + lib.optionalString (postBuild != null) postBuild;

meta = { platforms = ruby.meta.platforms; } // meta;
passthru = basicEnv.passthru // {
inherit basicEnv;
inherit (basicEnv) env;
} // passthru;
})
let
bundlerEnvArgs = {
inherit ignoreCollisions;

name = basicEnv.name;

paths = envPaths;
pathsToLink = [ "/lib" ];

postBuild = genStubsScript {
inherit lib ruby bundler groups;
confFiles = basicEnv.confFiles;
binPaths = [ basicEnv.gems.${pname} ];
} + lib.optionalString (postBuild != null) postBuild;

meta = { platforms = ruby.meta.platforms; } // meta;
passthru = basicEnv.passthru // {
inherit basicEnv;
inherit (basicEnv) env;
} // passthru;
};
in
if copyGemFiles then
runCommand basicEnv.name bundlerEnvArgs ''
mkdir -p $out
for i in $paths; do
${rsync}/bin/rsync -a $i/lib $out/
done
eval "$postBuild"
''
else
buildEnv bundlerEnvArgs