# Add BinDeps dependency to the build in julia v1

**URL:** <https://discourse.julialang.org/t/add-bindeps-dependency-to-the-build-in-julia-v1/17086>\
**Category:** General Usage\
**Tags:** question, pkg\
**Created:** [November 2, 2018, 11:01am UTC](https://discourse.julialang.org/t/add-bindeps-dependency-to-the-build-in-julia-v1/17086 "2018-11-02T11:01:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [November 2, 2018, 11:01am UTC](https://discourse.julialang.org/t/add-bindeps-dependency-to-the-build-in-julia-v1/17086/1 "2018-11-02T11:01:18Z")

</div>

**tl;dr:** In the build step of one of my packages I need to make use of `BinDeps`, but I get an error that the `BinDeps` package isn’t found in current path.

I have this file structure:

```julia
MyPackage
├── deps
│ ├── build.jl # where I have `using BinDeps`
│ ├── Manifest.toml
│ └── Project.toml
...

```

in _that_ ` Project.toml` I have

```nohighlight
[deps]
BinDeps = "9e28174c-4ba2-5203-b857-d8d62c4213ee"

```

But still:

```julia
julia> using Pkg

julia> Pkg.add(PackageSpec(url = "https://github.com/yakir12/DungGUI.jl"))
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Cloning git-repo `https://github.com/yakir12/DungGUI.jl`
  Updating git-repo `https://github.com/yakir12/DungGUI.jl`
 Resolving package versions...
 Installed WebIO ─ v0.4.1
  Updating `~/.julia/environments/v1.0/Project.toml`
  [33bc2c43] + DungGUI v0.1.0 #master (https://github.com/yakir12/DungGUI.jl)
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [33bc2c43] + DungGUI v0.1.0 #master (https://github.com/yakir12/DungGUI.jl)
  [5ab0869b] ↑ KernelDensity v0.5.0 ⇒ v0.5.1
  [0f1e0344] ↑ WebIO v0.4.0 ⇒ v0.4.1
  Building WebIO ──→ `~/.julia/packages/WebIO/QjKwf/deps/build.log`
  Building DungGUI → `~/.julia/packages/DungGUI/SKidU/deps/build.log`
┌ Error: Error building `DungGUI`: 
│ ERROR: LoadError: ArgumentError: Package BinDeps not found in current path:
│ - Run `import Pkg; Pkg.add("BinDeps")` to install the BinDeps package.
│ 
│ Stacktrace:
│ [1] require(::Module, ::Symbol) at ./loading.jl:820
│ [2] include at ./boot.jl:317 [inlined]
│ [3] include_relative(::Module, ::String) at ./loading.jl:1041
│ [4] include(::Module, ::String) at ./sysimg.jl:29
│ [5] include(::String) at ./client.jl:388
│ [6] top-level scope at none:0
│ in expression starting at /home/yakir/.julia/packages/DungGUI/SKidU/deps/build.jl:1
└ @ Pkg.Operations /buildworker/worker/package_

```

it complains that “Package BinDeps not found in current path”…

What am I doing wrong…?

Thanks!

---

<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:** [November 2, 2018, 11:52am UTC](https://discourse.julialang.org/t/add-bindeps-dependency-to-the-build-in-julia-v1/17086/2 "2018-11-02T11:52:01Z")

</div>

`Pkg.build` is not run in a separate project, so you will have to add it to the main deps, here: [DungGUI.jl/Project.toml at 4ed47b71c9f709ecea67b9057334b2a588dffb35 · yakir12/DungGUI.jl · GitHub](https://github.com/yakir12/DungGUI.jl/blob/4ed47b71c9f709ecea67b9057334b2a588dffb35/Project.toml#L6).

Edit: Or hack your way through Pkg and do this: [https://github.com/fredrikekre/Sandbox.jl](https://github.com/fredrikekre/Sandbox.jl)

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [November 2, 2018, 12:20pm UTC](https://discourse.julialang.org/t/add-bindeps-dependency-to-the-build-in-julia-v1/17086/3 "2018-11-02T12:20:22Z")

</div>

Thank you!
