# Managing dependencies in packages

**URL:** <https://discourse.julialang.org/t/managing-dependencies-in-packages/34474>\
**Category:** General Usage\
**Created:** [February 11, 2020, 3:52pm UTC](https://discourse.julialang.org/t/managing-dependencies-in-packages/34474 "2020-02-11T15:52:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timueh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/timueh/32/12379_2.png) [@timueh](https://discourse.julialang.org/u/timueh)\
**Post date:** [February 11, 2020, 3:52pm UTC](https://discourse.julialang.org/t/managing-dependencies-in-packages/34474/1 "2020-02-11T15:52:30Z")

</div>

How do I account for package dependencies that vary depending on the Julia version when running CI via travis?

My situation: The `SpecialFunctions` package in its latest version `0.10.0` requires Julia 1.3 or above. When writing a new package that should be supported for Julia 1.0 and above, does that mean I have to resort to the version of `SpecialFunctions` that supports Julia 1.0 (which is 0.7.2, I believe)? Or is there a way in the `Project.toml` and `Manifest.toml` files to support something like

```julia
if VERSION < v"1.3.0"
  # use Project.toml and Manifest.toml that use SpecialFunctions 0.7.2
else
  # use Project.toml and Manifest.toml that use SpecialFunctions 0.10.0
end

```

Thanks!

---

<div class="post-metadata">

**Author:** ![timueh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/timueh/32/12379_2.png) [@timueh](https://discourse.julialang.org/u/timueh)\
**Post date:** [February 12, 2020, 8:30am UTC](https://discourse.julialang.org/t/managing-dependencies-in-packages/34474/2 "2020-02-12T08:30:25Z")

</div>

Okay, noob insight: the `Manifest.toml` should _not_ be added to the repository of a Julia package. Instead, `Pkg.jl` creates it based on `Project.toml`. [If the `[compat]` entries are correct](https://julialang.github.io/Pkg.jl/v1/compatibility/) in the `Project.toml` file, then no harm is done.

Perhaps it doesn’t hurt to emphasize in the documentation of `Pkg.jl` that any unexpected behavior can be avoided once you add `Manifest.toml` to your `.gitignore`, [see this PR](https://github.com/JuliaLang/Pkg.jl/pull/1668).
