JuliaLang / Pkg.jl

Pkg - Package manager for the Julia programming language
https://pkgdocs.julialang.org
Other
616 stars 258 forks source link

Revise the API of is_manifest_current. #3701

Closed GunnarFarneback closed 8 months ago

GunnarFarneback commented 9 months ago

The API function is_manifest_current was not working as intended and was mostly useless for its intended purpose of verifying in tests that the manifest and project files of a package were synchronized. See https://github.com/JuliaLang/Pkg.jl/pull/2815#issuecomment-1819237619 for details.

This PR removes the zero-argument method of is_manifest_current and adds a new is_manifest_current(::AbstractString) method that can be used in tests in, e.g., the form

using Pkg, Test, Package
@test Pkg.is_manifest_current(pkgdir(Package))