Can't test package: "in manifest but not in project"

I have the registered CircularArrays package deved, but I can’t test it, and can’t make sense of the error message

(v1.3) pkg> status CircularArrays
    Status `C:\Users\sternlab\.julia\environments\v1.3\Project.toml`
  [dcaa3502] CircularArrays v0.1.0 [`C:\Users\sternlab\.julia\dev\CircularArrays`]
  [6fe1bfb0] OffsetArrays v0.11.4

(v1.3) pkg> test CircularArrays
ERROR: The following package names could not be resolved:
 * CircularArrays (7a955b69-7140-5f4e-a0ed-f168c5e2e749 or dcaa3502-af75-11e8-34c7-6b8fb8855653 in manifest but not in project)
Please specify by known `name=uuid`.

The Manifest.TOML file for the default environment lists the package twice:

[[CircularArrays]]
deps = ["OffsetArrays"]
path = "C:\\Users\\sternlab\\.julia\\dev\\CircularArrays"
uuid = "dcaa3502-af75-11e8-34c7-6b8fb8855653"
version = "0.1.0"
[[CircularArrays]]
deps = ["Test"]
git-tree-sha1 = "310214c08082c8a408f8f7839da0418cef60c117"
uuid = "7a955b69-7140-5f4e-a0ed-f168c5e2e749"
version = "0.1.0"

This doesn’t change after ]remove CircularArrays; dev CircularArrays; resolve

Edit: using Pkg.test instead of ]test seems to work, but I still don’t understand what is going on.

This seems to be a Pkg bug stemming from the fact that you have two dependencies with the same name but different UUID.

It doesn’t occur on master and there is a pending PR to prevent any regressions: https://github.com/JuliaLang/Pkg.jl/pull/1563.

As for your current situation, you can always activate the dependency directly then call test with no arguments.

I don’t really have two different dependencies. I tracked down the two UUIDs: one comes from the package’s Project.TOML: https://github.com/Vexatos/CircularArrays.jl/blob/master/Project.toml, and the other from the Package.TOML registering the same package in the General registry.
Does this mean there’s an error in the registry?

Yeah there is a discrepancy. Probably easier to change the UUID in the original repo though