From 50d0fbc51f2b5c10c79217cb04ac12dcf627e4ae Mon Sep 17 00:00:00 2001 From: takahashim Date: Mon, 28 Aug 2023 20:00:36 +0900 Subject: [PATCH] Remove a patch for FileUtils --- config/initializers/fileutils.rb | 3 --- lib/monkey_patching_fileutils.rb | 15 --------------- 2 files changed, 18 deletions(-) delete mode 100644 config/initializers/fileutils.rb delete mode 100644 lib/monkey_patching_fileutils.rb diff --git a/config/initializers/fileutils.rb b/config/initializers/fileutils.rb deleted file mode 100644 index 1077050d4e..0000000000 --- a/config/initializers/fileutils.rb +++ /dev/null @@ -1,3 +0,0 @@ -# frozen_string_literal: true - -require_relative "../../lib/monkey_patching_fileutils" diff --git a/lib/monkey_patching_fileutils.rb b/lib/monkey_patching_fileutils.rb deleted file mode 100644 index ef562433ea..0000000000 --- a/lib/monkey_patching_fileutils.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -# ref. https://github.com/docker/for-linux/issues/1015#issuecomment-811453779 -module FileUtilsDockerPatch - def copy_file(dest) - FileUtils.touch(path) - super - end -end - -module FileUtils - class Entry_ # rubocop:disable Naming/ClassAndModuleCamelCase - prepend FileUtilsDockerPatch - end -end