Using ... uses outdated Package

Why does

@which set_cache_path("arg")

find something in the following example?

[volker@battle SimpleCache]$ cat src/SimpleCache.jl 
module SimpleCache

end # module
[volker@battle SimpleCache]$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.5.3 (2020-11-09)
 _/ |\__'_|_|_|\__'_|  |  
|__/                   |

(@v1.5) pkg> rm SimpleCache
ERROR: The following package names could not be resolved:
 * SimpleCache (not found in project or manifest)


(@v1.5) pkg> add .
[ Info: Resolving package identifier `.` as a directory at `~/Sync/git/SimpleCache`.
   Updating git-repo `/home/volker/Sync/git/SimpleCache`
   Updating registry at `~/.julia/registries/General`
  Resolving package versions...
Updating `~/.julia/environments/v1.5/Project.toml`
  [535d1a1e] + SimpleCache v0.1.0 `../../../Sync/git/SimpleCache#master`
Updating `~/.julia/environments/v1.5/Manifest.toml`
  [535d1a1e] + SimpleCache v0.1.0 `../../../Sync/git/SimpleCache#master`

julia> using SimpleCache

julia> @which set_cache_path("arg")
set_cache_path(path) in SimpleCache at /home/volker/.julia/packages/SimpleCache/MMAqb/src/SimpleCache.jl:19

julia>

You probably want pkg> dev . here. pkg> add will add (copy) the content of the last commit in the repository at ..

2 Likes