# Resolving a custom REQUIRE when calling julia

**URL:** https://discourse.julialang.org/t/resolving-a-custom-require-when-calling-julia/4844
**Category:** General Usage
**Created:** [July 13, 2017, 10:32pm UTC](https://discourse.julialang.org/t/resolving-a-custom-require-when-calling-julia/4844 "2017-07-13T22:32:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mortenpi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mortenpi/32/158_2.png) [@mortenpi](https://discourse.julialang.org/u/mortenpi)
#### Post date: [July 13, 2017, 10:32pm UTC](https://discourse.julialang.org/t/resolving-a-custom-require-when-calling-julia/4844/1 "2017-07-13T22:32:03Z")

</div>

I am wondering if there’s a standard-ish way of having a custom `REQUIRE` file when calling a script. The behaviour I’m after is how `Pkg.test()` handles `test/REQUIRE`.

The use case I have in mind is when using [Documenter](https://github.com/JuliaDocs/Documenter.jl) to build the docs, `docs/make.jl` has additional depenencies (Documenter itself and possibly more). Handling of additional deps could be done within Documenter in principle, but you always need to have Documenter installed first (which is usually done on separate command in `.travis.yml` right now). It would be neat if you could have a single `docs/REQUIRE` file which would automagically handled.

If there’s no good way of doing this right now then maybe an additional option to the `julia` binary could be an option? E.g.:

```julia
julia --require=docs/REQUIRE docs/make.jl

```

As I mentioned, the behaviour should be the same as when you run the tests, so

```julia
julia --require=test/REQUIRE test/runtests.jl

```

should basically be equivalent to calling `Pkg.test()`.

---

<div class="post-metadata">

### Author: ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)
#### Post date: [July 13, 2017, 11:49pm UTC](https://discourse.julialang.org/t/resolving-a-custom-require-when-calling-julia/4844/2 "2017-07-13T23:49:15Z")

</div>

It would be great to handle REQUIRE files in docs as well. For consistency, `test/REQUIRE` and `docs/REQUIRE` could exploit the same solution. I am currently adding packages manually in `docs/make.jl`.
