lib/berkshelf/file_syncer.rb in berkshelf-7.2.0 vs lib/berkshelf/file_syncer.rb in berkshelf-7.2.1

- old
+ new

@@ -87,9 +87,12 @@ target = File.readlink(source_file) destination = File.expand_path(destination) FileUtils.ln_sf(target, "#{destination}/#{relative_path}") when :file + # TODO: Workaround issue related to [1] which impacts running ChefSpec on Github Actions + # [1] https://github.com/docker/for-linux/issues/1015 + FileUtils.touch(source_file) FileUtils.cp(source_file, "#{destination}/#{relative_path}") else type = File.ftype(source_file) raise "Unknown file type: `#{type}' at " \ "`#{source_file}'. Failed to sync `#{source_file}' to " \