# How to add upper bounds to previous tags?

**URL:** <https://discourse.julialang.org/t/how-to-add-upper-bounds-to-previous-tags/1913>\
**Category:** Community\
**Created:** [February 5, 2017, 5:55am UTC](https://discourse.julialang.org/t/how-to-add-upper-bounds-to-previous-tags/1913 "2017-02-05T05:55:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [February 5, 2017, 5:55am UTC](https://discourse.julialang.org/t/how-to-add-upper-bounds-to-previous-tags/1913/1 "2017-02-05T05:55:42Z")

</div>

I need to add upper bounds in `REQUIRE` to all previous tags of a package.  
How do I do this in an efficient way?

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [February 5, 2017, 5:59am UTC](https://discourse.julialang.org/t/how-to-add-upper-bounds-to-previous-tags/1913/2 "2017-02-05T05:59:59Z")

</div>

Just make a new branch in your METADATA fork, open up the folder for your package and do it manually. I don’t think there’s a good way to regex it because there’s a few corner cases to watch out for. For example, you want to still put max versions on previous versions which didn’t even have a requirement before. Example:

[https://github.com/JuliaLang/METADATA.jl/pull/7491](https://github.com/JuliaLang/METADATA.jl/pull/7491)

It’s quite quick to do.

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [February 5, 2017, 4:36pm UTC](https://discourse.julialang.org/t/how-to-add-upper-bounds-to-previous-tags/1913/3 "2017-02-05T16:36:27Z")

</div>

Tim Holy has some WIP PR’s up at PkgDev to add automated features for this, but yeah I generally do it by hand.

`$EDITOR ~/.julia/v0.5/METADATA/PackageName/versions/*/requires` works pretty well too, as long as the package in question isn’t so old that it had any tagged versions with no requires file.

---

<div class="post-metadata">

**Author:** ![ararslan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ararslan/32/3825_2.png) [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Post date:** [April 17, 2017, 7:03pm UTC](https://discourse.julialang.org/t/how-to-add-upper-bounds-to-previous-tags/1913/4 "2017-04-17T19:03:15Z")

</div>

As a not-entirely-useful aside, I made an unregistered package called [Bounder](https://github.com/ararslan/Bounder.jl) for exactly this purpose a while back. I ran into LibGit2 issues at the time (I was developing on 0.5) and I don’t know whether they’ve since been fixed in 0.6. Chances are the functionality Tim Holy is adding to PkgDev will be better anyway. 😉
