# Registry updating twice

**URL:** <https://discourse.julialang.org/t/registry-updating-twice/19772>\
**Category:** General Usage\
**Tags:** pkg\
**Created:** [January 18, 2019, 8:15am UTC](https://discourse.julialang.org/t/registry-updating-twice/19772 "2019-01-18T08:15:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [January 18, 2019, 8:15am UTC](https://discourse.julialang.org/t/registry-updating-twice/19772/1 "2019-01-18T08:15:04Z")

</div>

When I run `Pkg.update()`, the registry seems to be updated twice, see below.  
This also happens with pkg mode: `] up`  
Only happens with my v0.7.0 installation and not with v1.0.3  
It seems harmless but something seems amiss.

```julia
Julia-0.7.0> Pkg.update()
 Updating registry at `C:\Users\Greg\.julia\registries\General`
 Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Updating registry at `C:\Users\Greg\.julia\registries\General`
 Updating git-repo `https://github.com/JuliaRegistries/General.git`
Resolving package versions...
 Updating `C:\Users\Greg\.julia\environments\v0.7\Project.toml`
[no changes]
 Updating `C:\Users\Greg\.julia\environments\v0.7\Manifest.toml`
[no changes]

```

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [January 18, 2019, 8:47am UTC](https://discourse.julialang.org/t/registry-updating-twice/19772/2 "2019-01-18T08:47:22Z")

</div>

> [@greg\_plowman](#):
>
> Only happens with my v0.7.0 installation and not with v1.0.3

So I guess it has been fixed then.

---

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [January 18, 2019, 11:00am UTC](https://discourse.julialang.org/t/registry-updating-twice/19772/3 "2019-01-18T11:00:53Z")

</div>

> [@kristoffer.carlsson](#):
>
> So I guess it has been fixed then.

Possibly.  
But I forget to mention that this happens on one machine with v0.7.0, and not on another machine with v0.7.0

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [January 18, 2019, 11:07am UTC](https://discourse.julialang.org/t/registry-updating-twice/19772/4 "2019-01-18T11:07:23Z")

</div>

Does it happen on any machine with 1.0.3?

---

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [January 18, 2019, 11:14am UTC](https://discourse.julialang.org/t/registry-updating-twice/19772/5 "2019-01-18T11:14:34Z")

</div>

No.

But it didn’t always happen with the v0.7.0 installation that has the problem, which made me think it was caused by some type of corruption with the package environment.

It does seem harmless and as you say I can’t reproduce (on either v0.7.0 or v1.0.3)

---

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [January 23, 2019, 8:13am UTC](https://discourse.julialang.org/t/registry-updating-twice/19772/6 "2019-01-23T08:13:22Z")

</div>

OK, I found the problem.  
I used a common `startup.jl` between machines, which adds an entry to `DEPOT_PATH`.  
On one machine it resulted in a duplicate entry in `DEPOT_PATH`.  
Presumably `v0.7.0` processes this twice when executing `Pkg.update`, and `v1.0.3` does not.  
I have modified `startup.jl`, so now it does not add a duplicate entry.  
Sorry for wasting your time Kristoffer.
