From 166fc9951895588e68eba5b528258225bcd4cfad Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Fri, 17 May 2024 09:25:40 +1200 Subject: [PATCH] Only include Julia files in src/algorithms --- src/MultiObjectiveAlgorithms.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/MultiObjectiveAlgorithms.jl b/src/MultiObjectiveAlgorithms.jl index 674aa99..74ede13 100644 --- a/src/MultiObjectiveAlgorithms.jl +++ b/src/MultiObjectiveAlgorithms.jl @@ -631,7 +631,11 @@ function _project(x::Vector{Float64}, axis::Int) end for file in readdir(joinpath(@__DIR__, "algorithms")) - include(joinpath(@__DIR__, "algorithms", file)) + # The check for .jl is necessary because some users may have other files + # like .cov from running code coverage. See JuMP.jl#3746. + if endswith(file, ".jl") + include(joinpath(@__DIR__, "algorithms", file)) + end end end