# Standard package not found in current path when using Pkg environment

**URL:** <https://discourse.julialang.org/t/standard-package-not-found-in-current-path-when-using-pkg-environment/14662>\
**Category:** General Usage\
**Created:** [September 7, 2018, 12:34pm UTC](https://discourse.julialang.org/t/standard-package-not-found-in-current-path-when-using-pkg-environment/14662 "2018-09-07T12:34:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![colintbowers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colintbowers/32/8033_2.png) [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Post date:** [September 7, 2018, 12:34pm UTC](https://discourse.julialang.org/t/standard-package-not-found-in-current-path-when-using-pkg-environment/14662/1 "2018-09-07T12:34:26Z")

</div>

Hi all,

I’m just in the final stages of updating a package for v1.0 (I’m currently testing it on v0.7). My problem is as follows. I start up a fresh REPL session, an hit `]` to start the package mode. I activate my package using `activate DependentBootstrap`. I try to test it using `test` and get the following error:

```
(DependentBootstrap) pkg> test
Testing DependentBootstrap
Resolving package versions...
ERROR: LoadError: ArgumentError: Package Random not found in current path:
- Run `Pkg.add("Random")` to install the Random package.

```

One of the first statements in my runtests.jl file is `using Random`, which is obviously what is causing the problem. But I can just copy/paste the contents of the runtests.jl file into the REPL and it all works fine, which is what leads me to believe that the problem is something I am not understanding about the Pkg environment.

One final point that may or may not be relevant: I’m currently running the package in develop mode, i.e. I used `develop` to pull the package from github, and it is currently stored in .julia/dev/DependentBootstrap

Any ideas what is going wrong?

Thanks in advance,

Colin

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [September 7, 2018, 12:50pm UTC](https://discourse.julialang.org/t/standard-package-not-found-in-current-path-when-using-pkg-environment/14662/2 "2018-09-07T12:50:52Z")

</div>

You need to add `Random` either as a direct dependency of `DependentBootstrap` or as a test dependency, see the docs: [Pkg · The Julia Language](https://docs.julialang.org/en/v1/stdlib/Pkg/#Test-specific-dependencies-1)

---

<div class="post-metadata">

**Author:** ![colintbowers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colintbowers/32/8033_2.png) [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Post date:** [September 8, 2018, 4:40am UTC](https://discourse.julialang.org/t/standard-package-not-found-in-current-path-when-using-pkg-environment/14662/3 "2018-09-08T04:40:29Z")

</div>

Ah thanks I understand now. I’d read this but foolishly didn’t make the connection that it would also apply to the standard package library.

Cheers,

Colin

---

<div class="post-metadata">

**Author:** ![fonsp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fonsp/32/222349_2.png) [@fonsp](https://discourse.julialang.org/u/fonsp)\
**Post date:** [April 8, 2020, 3:31pm UTC](https://discourse.julialang.org/t/standard-package-not-found-in-current-path-when-using-pkg-environment/14662/4 "2020-04-08T15:31:31Z")

</div>

Thanks! The link was moved here:  
[https://docs.julialang.org/en/v1.0.0/stdlib/Pkg/#Test-specific-dependencies-1](https://docs.julialang.org/en/v1.0.0/stdlib/Pkg/#Test-specific-dependencies-1)
