Skip to content

Commit 8767b64

Browse files
authored
Merge pull request #5596 from stulle123/update-file-size
Increase the max file size of parsed *.txt files to 500 kilobytes. The limit exists to prevent ingesting documentation files etc that are massive. However, the previous limit of 200 KB was too small... Especially in large projects, pip-tools-compiled requirement.txt files can get pretty big.
2 parents b0e1745 + f69db22 commit 8767b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/lib/dependabot/python/file_fetcher.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def req_txt_and_in_files
169169
repo_contents.
170170
select { |f| f.type == "file" }.
171171
select { |f| f.name.end_with?(".txt", ".in") }.
172-
reject { |f| f.size > 200_000 }.
172+
reject { |f| f.size > 500_000 }.
173173
map { |f| fetch_file_from_host(f.name) }.
174174
select { |f| requirements_file?(f) }.
175175
each { |f| @req_txt_and_in_files << f }
@@ -189,7 +189,7 @@ def req_files_for_dir(requirements_dir)
189189
repo_contents(dir: relative_reqs_dir).
190190
select { |f| f.type == "file" }.
191191
select { |f| f.name.end_with?(".txt", ".in") }.
192-
reject { |f| f.size > 200_000 }.
192+
reject { |f| f.size > 500_000 }.
193193
map { |f| fetch_file_from_host("#{relative_reqs_dir}/#{f.name}") }.
194194
select { |f| requirements_file?(f) }
195195
end

0 commit comments

Comments
 (0)