# How to pin package to the master version?

**URL:** <https://discourse.julialang.org/t/how-to-pin-package-to-the-master-version/29480>\
**Category:** New to Julia\
**Created:** [October 4, 2019, 10:46am UTC](https://discourse.julialang.org/t/how-to-pin-package-to-the-master-version/29480 "2019-10-04T10:46:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Tero\_Frondelius](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tero_frondelius/32/7629_2.png) [@Tero\_Frondelius](https://discourse.julialang.org/u/Tero_Frondelius)\
**Post date:** [October 4, 2019, 11:43am UTC](https://discourse.julialang.org/t/how-to-pin-package-to-the-master-version/29480/3 "2019-10-04T11:43:03Z")

</div>

Yes, thank you. Here is what I try now (in `.travis.yml`):

```julia
before_script:
  - julia -e 'using Pkg; Pkg.pin(PackageSpec(name="CxxWrap",version="0.8.1")); pkg"add Materials#master"; pkg"add FEMMaterials#master"'

```

---

_[View the full topic](https://discourse.julialang.org/t/how-to-pin-package-to-the-master-version/29480)._
