# How can I check out a pull request?

**URL:** <https://discourse.julialang.org/t/how-can-i-check-out-a-pull-request/82635>\
**Category:** General Usage\
**Created:** [June 12, 2022, 12:52pm UTC](https://discourse.julialang.org/t/how-can-i-check-out-a-pull-request/82635 "2022-06-12T12:52:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [June 12, 2022, 12:52pm UTC](https://discourse.julialang.org/t/how-can-i-check-out-a-pull-request/82635/1 "2022-06-12T12:52:18Z")

</div>

I would like to try:

```julia
https://github.com/JuliaEcosystem/PkgDeps.jl/pull/39

```

How can I install it in Julia on Linux?

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [June 12, 2022, 1:00pm UTC](https://discourse.julialang.org/t/how-can-i-check-out-a-pull-request/82635/2 "2022-06-12T13:00:44Z")

</div>

if you already have the original pkg deved or git cloned somewhere, cd there and:

```julia
git remote add somefork https://github.com/danielmatz/PkgDeps.jl/
git fetch
git switch use-pkg-registry-api

```

* * *

actually, it’s probably easier if you just use Julia Pkg:

```julia
] dev https://github.com/danielmatz/PkgDeps.jl

```

then cd to `~/.julia/dev/PkgDeps/` and run

```julia
git switch use-pkg-registry-api

```

(you may need to `]resolve` afterwards)

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [June 12, 2022, 1:41pm UTC](https://discourse.julialang.org/t/how-can-i-check-out-a-pull-request/82635/3 "2022-06-12T13:41:59Z")

</div>

Thanks for your explanation!

It did not solve my original problem, though. All I want is to be able to use the package “PackageAnalyzer”. It does not work with Julia 1.7 without the pull request mentioned above.  
Bug report: [Deal with compressed registry in Julia v1.7 · Issue #67 · JuliaEcosystem/PackageAnalyzer.jl · GitHub](https://github.com/JuliaEcosystem/PackageAnalyzer.jl/issues/67)

```julia
I still get this error message:
"julia> analyze("DataFrames")
ERROR: ArgumentError: collection must be non-empty
Stacktrace:
 [1] first
   @ ./abstractarray.jl:419 [inlined]
 [2] general_registry
   @ ~/.julia/packages/PackageAnalyzer/8nIpt/src/PackageAnalyzer.jl:165 [inlined]
 [3] analyze(name_or_dir_or_url::String)
   @ PackageAnalyzer ~/.julia/packages/PackageAnalyzer/8nIpt/src/PackageAnalyzer.jl:453
 [4] top-level scope
   @ REPL[8]:1
"

```

Any idea?

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [June 12, 2022, 1:50pm UTC](https://discourse.julialang.org/t/how-can-i-check-out-a-pull-request/82635/4 "2022-06-12T13:50:56Z")

</div>

check `]st` to see if you’re using your local copy correctly ?

---

<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:** [June 12, 2022, 1:54pm UTC](https://discourse.julialang.org/t/how-can-i-check-out-a-pull-request/82635/5 "2022-06-12T13:54:40Z")

</div>

You can also use [GitHubs official CLI tool](https://github.com/cli/cli) `gh` (I like it a lot). Specifically, you clone the repo as usual and then simply run

```julia
gh pr checkout 39

```
