# How to use compat to force the use of given julia version

**URL:** https://discourse.julialang.org/t/how-to-use-compat-to-force-the-use-of-given-julia-version/95623
**Category:** General Usage
**Created:** [March 6, 2023, 5:50pm UTC](https://discourse.julialang.org/t/how-to-use-compat-to-force-the-use-of-given-julia-version/95623 "2023-03-06T17:50:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tencnivel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tencnivel/32/8662_2.png) [@tencnivel](https://discourse.julialang.org/u/tencnivel)
#### Post date: [March 6, 2023, 5:50pm UTC](https://discourse.julialang.org/t/how-to-use-compat-to-force-the-use-of-given-julia-version/95623/1 "2023-03-06T17:50:35Z")

</div>

I try to tell that my project is compatible with julia 1.8.5 only

I added the following

```julia
[compat]
julia="~1.8.5"

```

and I was expecting to get an error when trying to load the module with a different julia version than the one expected,  
but that is not the case, no error is thrown.  
Any idea why?
