Dependency not found after installing the package just fine

I don’t understand what is going on here:

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.4 (2025-03-10)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.11) pkg> add PkgSkeleton
   Resolving package versions...
    Updating `~/.julia/environments/v1.11/Project.toml`
  [d254efa0] + PkgSkeleton v1.3.2
    Updating `~/.julia/environments/v1.11/Manifest.toml`
  [dce04be8] + ArgCheck v2.5.0
  [d254efa0] + PkgSkeleton v1.3.2
Precompiling project...
  57 dependencies successfully precompiled in 41 seconds. 69 already precompiled.

julia> import PkgSkeleton
Precompiling PkgSkeleton...
Info Given PkgSkeleton was explicitly requested, output will be shown live
ERROR: LoadError: ArgumentError: Package ArgCheck [dce04be8-c92d-5529-be00-80e4d2c0e197] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

Could it be some cache/precompilation corruption? What should I nuke/regenerate?

You can try out GitHub - KristofferC/PkgFsck.jl or delete .julia/packages/ArgCheck and do an instantiate.

1 Like

Neither helped, but deleting the v1.11 Manifest.toml fixed the issue. I guess it was somehow corrupted (even though I never got error messages for removing/adding packages).

Would have been interesting to see what was in that manifest.

1 Like

Yes, I realized after deleting it, sorry. Got a bit too trigger happy after a 3-day exercise in bisection.