From f34bc06abc7af57dd6074d7e2a0d2dd1ca386ccb Mon Sep 17 00:00:00 2001 From: talyz Date: Tue, 9 Aug 2022 19:47:40 +0200 Subject: [PATCH] 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. --- pkgs/servers/web-apps/discourse/update.py | 1 + 1 file changed, 1 insertion(+) 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)