# Package extension version restriction

**URL:** https://discourse.julialang.org/t/package-extension-version-restriction/108571
**Category:** General Usage
**Tags:** package, ci, package-extensions
**Created:** [January 9, 2024, 3:57pm UTC](https://discourse.julialang.org/t/package-extension-version-restriction/108571 "2024-01-09T15:57:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![henry2004y](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henry2004y/32/9284_2.png) [@henry2004y](https://discourse.julialang.org/u/henry2004y)
#### Post date: [January 9, 2024, 3:57pm UTC](https://discourse.julialang.org/t/package-extension-version-restriction/108571/1 "2024-01-09T15:57:50Z")

</div>

Hi everyone,

I’m having some issues with the package extensions. Recently I’ve added Makie as an extension to my data processing package Batsrus.jl. I listed Makie.jl in the [weakdeps] and added the [compat] info for it. In the tests, I listed CairoMakie as a test dependency (but no version restriction, since I don’t know how to do that). It worked well until this week, when Makie.jl and CairoMakie.jl were updated to newer versions. The [CI Actions julia-runtest](https://github.com/henry2004y/Batsrus.jl/actions/runs/7457019872/job/20307366966) showed that the installed CairoMakie version was v0.4.7, which was very old (the latest release is v0.11.5). I believe the failure of tests was caused by the old package version. However, three weeks ago, the [CI Actions julia-runtest](https://github.com/henry2004y/Batsrus.jl/actions/runs/7267869601/job/19802584223) showed that the installed CairoMakie version was v0.11.3. My latest commits did not touch the package extension or anything related to Project.toml.

In the extension BatsrusMakieExt, only Makie is imported. CairoMakie is only used for testing purposes, but somehow it chose a very old version which was probably incompatible with neither Makie v0.19 nor v0.20 listed in [Batsrus.jl/Project.toml](https://github.com/henry2004y/Batsrus.jl/blob/master/Project.toml).

Why did this happen, and how should I fix the compatibility issue with package extensions?
