# Fork and build Julia for a PR to stdlib?

**URL:** <https://discourse.julialang.org/t/fork-and-build-julia-for-a-pr-to-stdlib/35926>\
**Category:** New to Julia\
**Created:** [March 13, 2020, 1:08pm UTC](https://discourse.julialang.org/t/fork-and-build-julia-for-a-pr-to-stdlib/35926 "2020-03-13T13:08:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [March 13, 2020, 1:08pm UTC](https://discourse.julialang.org/t/fork-and-build-julia-for-a-pr-to-stdlib/35926/1 "2020-03-13T13:08:20Z")

</div>

If I want to make a change to `Statistics`, which is a stdlib, do I have to fork julia, clone it, build it from source, and edit the file there?

Or is there another way? Could I use the released Binary to do this?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [March 13, 2020, 1:16pm UTC](https://discourse.julialang.org/t/fork-and-build-julia-for-a-pr-to-stdlib/35926/2 "2020-03-13T13:16:38Z")

</div>

See [GitHub - JuliaLang/Pkg.jl: Pkg - Package manager for the Julia programming language](https://github.com/JuliaLang/Pkg.jl#using-the-development-version-of-pkgjl)

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [March 13, 2020, 1:19pm UTC](https://discourse.julialang.org/t/fork-and-build-julia-for-a-pr-to-stdlib/35926/3 "2020-03-13T13:19:50Z")

</div>

You can also `using Statistics, Revise` followed by `Revise.track(Statistics)`. Changes to the `Statistics` stdlib will now be reflected in your current session.

In principle, you could also do this with the binaries from the website. However, you would be modifying files that you probably don’t want to modify (The changes won’t take effect in a new session, but nonetheless). Instead, I’d recommend to clone and build Julia once, to have a playground, and then use this approach with this version.

Note that I think there is one more approach: you could also only clone the `Statistics` stdlib, give it a new uuid and then `dev` it like any other package.

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [March 13, 2020, 1:26pm UTC](https://discourse.julialang.org/t/fork-and-build-julia-for-a-pr-to-stdlib/35926/4 "2020-03-13T13:26:14Z")

</div>

Thanks! this advice works great. I am up and running.
