Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/PackageCompiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,6 @@ function restore_default_sysimage()
return nothing
end

const REQUIRES = "Requires" => UUID("ae029012-a4dd-5104-9daa-d747884805df")

function create_pkg_context(project)
project_toml_path = Pkg.Types.projectfile_path(project; strict=true)
if project_toml_path === nothing
Expand All @@ -660,16 +658,6 @@ the project at `app_dir`.
"""
audit_app(app_dir::String) = audit_app(create_pkg_context(app_dir))
function audit_app(ctx::Pkg.Types.Context)
# Check for Requires.jl usage
if REQUIRES in ctx.env.project.deps
@warn "Project has a dependency on Requires.jl, code in `@require` will not be run"
end
for (uuid, pkg) in ctx.env.manifest
if REQUIRES in pkg.deps
@warn "$(pkg.name) has a dependency on Requires.jl, code in `@require` will not be run"
end
end

# Check for build script usage
if isfile(joinpath(dirname(ctx.env.project_file), "deps", "build.jl"))
@warn "Project has a build script, this might indicate that it is not relocatable"
Expand Down