diff options
| author | talyz <kim.lindberger@gmail.com> | 2022-08-09 19:47:40 +0200 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-08-17 08:46:42 +0000 |
| commit | 89e3503f938708580ad0b7c748c5297d8caaaa3e (patch) | |
| tree | df9d019ec2287f49aaf6c4bab76392320e2553a4 | |
| parent | discourse: 2.9.0.beta4 -> 2.9.0.beta9 (diff) | |
| download | nixpkgs-89e3503f938708580ad0b7c748c5297d8caaaa3e.tar.gz | |
discourse: Filter out :require_name option when creating the Gemfile
:require_name is internal to Discourse and Bundler throws an error
when it's passed through to the Gemfile.
(cherry picked from commit f34bc06abc7af57dd6074d7e2a0d2dd1ca386ccb)
| -rwxr-xr-x | pkgs/servers/web-apps/discourse/update.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/servers/web-apps/discourse/update.py b/pkgs/servers/web-apps/discourse/update.py index 64f374bad703..9fc14b177114 100755 --- a/pkgs/servers/web-apps/discourse/update.py +++ b/pkgs/servers/web-apps/discourse/update.py @@ -407,6 +407,7 @@ def update_plugins(): gemfile_text = '' for line in repo.get_file('plugin.rb', rev).splitlines(): if 'gem ' in line: + line = ','.join(filter(lambda x: ":require_name" not in x, line.split(','))) gemfile_text = gemfile_text + line + os.linesep version_file_match = version_file_regex.match(line) |
