# How to upgrade my non-registered package to v0.7

**URL:** <https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922>\
**Category:** General Usage\
**Tags:** pkg\
**Created:** [September 13, 2018, 9:36pm UTC](https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922 "2018-09-13T21:36:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![floswald](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/floswald/32/195_2.png) [@floswald](https://discourse.julialang.org/u/floswald)\
**Post date:** [September 13, 2018, 9:36pm UTC](https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922/1 "2018-09-13T21:36:15Z")

</div>

hi all

really sorry for the 528-th question about Pkg3. It’s not working for me.  
I want to upgrade this [GitHub - floswald/SMM.jl: Simulated Method of Moments for Julia](https://github.com/floswald/MomentOpt.jl) to v0.7. Here is what I have done:

### first try

1. start julia 0.7
2. `] add https://github.com/floswald/MomentOpt.jl`
3. `] dev MomentOpt`

```julia-auto
(v0.7) pkg> dev MomentOpt
ERROR: The following package names could not be resolved:
 * MomentOpt (bc769cb7-f249-5bba-802a-79f18cb247ec in manifest but not in project)
Please specify by known `name=uuid`.

```

1. `] rm MomentOpt`

### second try

1. `] dev https://github.com/floswald/MomentOpt.jl`
2. `(v0.7) pkg> activate /Users/florian.oswald/.julia/dev/MomentOpt`
3. `(MomentOpt) pkg> test MomentOpt`

```julia-auto
ERROR: The following package names could not be resolved:
 * MomentOpt (not found in project or manifest)
Please specify by known `name=uuid`.

```

Do I need to add the package again to it’s own project? I thought I could create a manifest and project file _for_ `MomentOpt` now? I can’t even load the code here?

1. `(MomentOpt) pkg> rm MomentOpt`

```julia-auto
┌ Warning: `MomentOpt` not in project, ignoring

```

Ah. Ok.

1. `shell> rm -rf ~/.julia/dev/MomentOpt/`

## third try

1. `cd ~/.julia/v0.6/MomentOpt`
2. `git branch v0.7 && git checkout v0.7`
3. start julia 0.7
4. `(v0.7) pkg> dev .`
5. `(v0.7) pkg> test MomentOpt`

That worked!

## Question

1. That’s probably not the ideal workflow. what is?
2. now suppose I am finished with the upgrade. I push the branch to github. merge. should i then just `add` the package from github?

thanks!

---

<div class="post-metadata">

**Author:** ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Post date:** [September 14, 2018, 12:27am UTC](https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922/2 "2018-09-14T00:27:35Z")

</div>

Your second try is close. This does work:

```julia
(v1.0) pkg> dev https://github.com/floswald/MomentOpt.jl
(v1.0) pkg> test MomentOpt

```

Using `] status` after `] activate /Users/florian.oswald/.julia/dev/MomentOpt` (or simply `] activate MomentOpt`) shows something like

```julia
(MomentOpt) pkg> status
    Status `~/.julia/dev/MomentOpt/Project.toml`

```

That is, the package manager now expects the `Project.toml` and `Manifest.toml` files in the `MomentOpt` directory to contain the information regarding what the `MomentOpt` package is, but `MomentOpt` does not contain a `Project.toml` or `Manifest.toml` file. Rather, that information is stored in the default environment, `~/.julia/environments/v1.0/Project.toml` in my case. So by activating `MomentOpt` the package manager ironically loses the information regarding what package `MomentOpt` refers to.

Actually, you’d think that you should still be able to `test` `MomentOpt` because the default environment is still on the `LOAD_PATH`; in fact, `using MomentOpt` works. However, `test MomentOpt` doesn’t for some reason and that does seem inconsistent. There might be an issue in Pkg.jl for this already, but if not it’s probably a good idea to open one.

I personally use non-default environments that are stored separately from the packages, i.e. I have a directory `~/code/julia-projects` that contains a subdirectory for each environment. To make a new environment, I’d do:

```bash
cd ~/code/julia-projects
mkdir newproject && cd newproject
julia --project

```

Then in Julia:

```julia
(v1.0) pkg> activate . # this is unfortunately currently needed despite --project (only) if there is no Project.toml file yet

(newproject) pkg> dev https://github.com/floswald/MomentOpt.jl

(newproject) pkg> test MomentOpt

```

---

<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:** [September 14, 2018, 7:13am UTC](https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922/3 "2018-09-14T07:13:34Z")

</div>

> [@tkoolen](#):
>
> However, `test MomentOpt` doesn’t for some reason and that does seem inconsistent. There might be an issue in Pkg.jl for this already, but if not it’s probably a good idea to open one.

I am pretty sure `test` only looks in the current project and not the load path, which seems fine. In this case the “problem” is not Pkg, but rather that MomentOpt does not have a `Project.toml` file.

> [@tkoolen](#):
>
> ```julia
> (v1.0) pkg> activate . # this is unfortunately currently needed despite --project (only) if there is no Project.toml file yet
> 
> ```

You can actually instead start julia with

```julia
julia --project=.

```

---

<div class="post-metadata">

**Author:** ![floswald](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/floswald/32/195_2.png) [@floswald](https://discourse.julialang.org/u/floswald)\
**Post date:** [September 14, 2018, 8:10am UTC](https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922/4 "2018-09-14T08:10:20Z")

</div>

thanks both. I just tried again on my other machine. I understand much better already, but there is still somethings that don’t make sense:

```julia
  MomentOpt git:(v0.7) julia7 --project=.
               _
   _ _ _(_)_ | A fresh approach to technical computing
  (_) | (_) (_) | Documentation: https://docs.julialang.org
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 0.7.0 (2018-08-08 06:46 UTC)
 _/ |\ __'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-apple-darwin14.5.0

(MomentOpt) pkg> test
ERROR: trying to test unnamed project

(MomentOpt) pkg> test MomentOpt
ERROR: The following package names could not be resolved:
 * MomentOpt (not found in project or manifest)
Please specify by known `name=uuid`.

(MomentOpt) pkg> activate .

(MomentOpt) pkg> st
    Status `Project.toml`

(MomentOpt) pkg> dev .
[ Info: Assigning UUID bc769cb7-f249-5bba-802a-79f18cb247ec to MomentOpt
 Resolving package versions...
 Installed MiniLogging ──── v0.0.2
 Installed DataFramesMeta ─ v0.4.0
 Installed Missings ─────── v0.2.10
 Installed RecipesBase ──── v0.5.0
 Installed JLD2 ─────────── v0.1.2
 Installed Roots ────────── v0.7.2
 Installed Plots ────────── v0.19.3
  Updating `Project.toml`
  [bc769cb7] + MomentOpt v0.0.0 [`.`]
  Updating `Manifest.toml`
  many packages...

```

so far so good. now what about that:

```julia
(MomentOpt) pkg> test MomentOpt
   Testing MomentOpt
ERROR: expected a `name` entry in project file at /Users/74097/.julia/v0.6/MomentOpt/Project.toml

```

indeed,

```julia
shell> cat Project.toml
[deps]
MomentOpt = "bc769cb7-f249-5bba-802a-79f18cb247ec"

```

why does `dev . ` not create a valid project.toml for me? I understand this is missing a [name] tag.

---

<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:** [September 14, 2018, 8:24am UTC](https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922/5 "2018-09-14T08:24:27Z")

</div>

> [@floswald](#):
>
> why does `dev .` not create a valid project.toml for me? I understand this is missing a [name] tag.

`dev` adds a package from a folder, you have now basically added `MomentOpt` to itself.

The problem here is that you have activated an environment `(MomentOpt)` but that environment is not recognized as a package, since it does not have a name in its `Project.toml` file. Try to remove the `Project.toml` + `Manifest.toml` file you have in your `MomentOpt` folder, then you add a new (package-valid) `Project.toml` file, with e.g.

```julia
name = "MomentOpt"
uuid = "bc769cb7-f249-5bba-802a-79f18cb247ec"

```

and then start over.

---

<div class="post-metadata">

**Author:** ![floswald](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/floswald/32/195_2.png) [@floswald](https://discourse.julialang.org/u/floswald)\
**Post date:** [September 14, 2018, 8:30am UTC](https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922/6 "2018-09-14T08:30:52Z")

</div>

thanks. not sure I did the right thing:

```julia
➜ MomentOpt git:(v0.7) ✗ ls
LICENSE.TXT Manifest.toml README.md appveyor.yml histogram.png main.jl slices-m.png slices-v.png test
Makefile Project.toml REQUIRE docs lines.png proposals.gif slices-m2.png src
➜ MomentOpt git:(v0.7) ✗ rm *.toml
➜ MomentOpt git:(v0.7) vim Project.toml
➜ MomentOpt git:(v0.7) ✗ julia7 --project=.
               _
   _ _ _(_)_ | A fresh approach to technical computing
  (_) | (_) (_) | Documentation: https://docs.julialang.org
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 0.7.0 (2018-08-08 06:46 UTC)
 _/ |\ __'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-apple-darwin14.5.0

(MomentOpt) pkg> st
Project MomentOpt v0.0.0
    Status `Project.toml`

(MomentOpt) pkg> activate .

(MomentOpt) pkg> st
Project MomentOpt v0.0.0
    Status `Project.toml`

(MomentOpt) pkg> dev .
┌ Warning: project file for MomentOpt at . is missing a `version` entry
└ @ Pkg.Types /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Types.jl:700
ERROR: Cannot develop package with the same name or uuid as the project

(MomentOpt) pkg> 

```

---

<div class="post-metadata">

**Author:** ![floswald](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/floswald/32/195_2.png) [@floswald](https://discourse.julialang.org/u/floswald)\
**Post date:** [September 14, 2018, 8:36am UTC](https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922/7 "2018-09-14T08:36:11Z")

</div>

added a version number:

```julia
➜ MomentOpt git:(v0.7) ✗ julia7 --project=.
               _
   _ _ _(_)_ | A fresh approach to technical computing
  (_) | (_) (_) | Documentation: https://docs.julialang.org
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 0.7.0 (2018-08-08 06:46 UTC)
 _/ |\ __'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-apple-darwin14.5.0

(MomentOpt) pkg> activate

(MomentOpt) pkg> st
Project MomentOpt v0.1.0
    Status `Project.toml`

(MomentOpt) pkg> dev .
ERROR: Cannot develop package with the same name or uuid as the project

```

---

<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:** [September 14, 2018, 8:36am UTC](https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922/8 "2018-09-14T08:36:36Z")

</div>

That seems to be correct, note that you now are in a named project since `status` shows `Project MomentOpt`, compared to before, when you were in a regular unnamed environment.

> [@floswald](#):
>
> (MomentOpt) pkg\> dev .

Don’t do this, this tries to add MomentOpt to MomentOpt, you don’t need to add the package to itself.

---

<div class="post-metadata">

**Author:** ![floswald](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/floswald/32/195_2.png) [@floswald](https://discourse.julialang.org/u/floswald)\
**Post date:** [September 14, 2018, 8:45am UTC](https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922/9 "2018-09-14T08:45:26Z")

</div>

great! works! thanks for your patience.

final question. I can’t get rid of these warnings about precompilation. are these indications about deprecated calls, i.e. do i need to do something here?

```julia
(MomentOpt) pkg> test MomentOpt
   Testing MomentOpt
 Resolving package versions...
WARNING: eval from module Plots to MomentOpt:    
Expr(:call, Expr(:., :Sys, :(:islinux)))
  **incremental compilation may be broken for this module**

WARNING: eval from module Plots to MomentOpt:    
Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1368 =#, Expr(:call, Expr(:., :Sys, :(:isapple))))
  **incremental compilation may be broken for this module**

WARNING: eval from module Plots to MomentOpt:    
Expr(:function, Expr(:call, :_show, Expr(:::, :io, :IO), Expr(:::, Expr(:curly, :MIME, Expr(:call, :Symbol, "application/postscript"))), Expr(:::, :plt, Expr(:curly, :Plot, :GRBackend))), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1379 =#, Expr(:call, Expr(:., :GR, :(:emergencyclosegks))), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1380 =#, :filepath = Expr(:call, :*, Expr(:call, :tempname), ".", "ps"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1381 =#, :env = Expr(:call, :get, :ENV, "GKSwstype", "0"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1382 =#, Expr(:ref, :ENV, "GKSwstype") = "ps", #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1383 =#, Expr(:ref, :ENV, "GKS_FILEPATH") = :filepath, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1384 =#, Expr(:call, :gr_display, :plt, "ps"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1385 =#, Expr(:call, Expr(:., :GR, :(:emergencyclosegks))), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1386 =#, Expr(:call, :write, :io, Expr(:call, :read, :filepath, :String)), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1387 =#, Expr(:call, :rm, :filepath), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1388 =#, Expr(:if, Expr(:call, :!=, :env, "0"), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1389 =#, Expr(:ref, :ENV, "GKSwstype") = :env), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1391 =#, Expr(:call, :pop!, :ENV, "GKSwstype")))))
  **incremental compilation may be broken for this module**

WARNING: eval from module Plots to MomentOpt:    
Expr(:function, Expr(:call, :_show, Expr(:::, :io, :IO), Expr(:::, Expr(:curly, :MIME, Expr(:call, :Symbol, "application/pdf"))), Expr(:::, :plt, Expr(:curly, :Plot, :GRBackend))), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1379 =#, Expr(:call, Expr(:., :GR, :(:emergencyclosegks))), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1380 =#, :filepath = Expr(:call, :*, Expr(:call, :tempname), ".", "pdf"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1381 =#, :env = Expr(:call, :get, :ENV, "GKSwstype", "0"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1382 =#, Expr(:ref, :ENV, "GKSwstype") = "pdf", #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1383 =#, Expr(:ref, :ENV, "GKS_FILEPATH") = :filepath, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1384 =#, Expr(:call, :gr_display, :plt, "pdf"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1385 =#, Expr(:call, Expr(:., :GR, :(:emergencyclosegks))), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1386 =#, Expr(:call, :write, :io, Expr(:call, :read, :filepath, :String)), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1387 =#, Expr(:call, :rm, :filepath), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1388 =#, Expr(:if, Expr(:call, :!=, :env, "0"), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1389 =#, Expr(:ref, :ENV, "GKSwstype") = :env), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1391 =#, Expr(:call, :pop!, :ENV, "GKSwstype")))))
  **incremental compilation may be broken for this module**

WARNING: eval from module Plots to MomentOpt:    
Expr(:function, Expr(:call, :_show, Expr(:::, :io, :IO), Expr(:::, Expr(:curly, :MIME, Expr(:call, :Symbol, "image/png"))), Expr(:::, :plt, Expr(:curly, :Plot, :GRBackend))), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1379 =#, Expr(:call, Expr(:., :GR, :(:emergencyclosegks))), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1380 =#, :filepath = Expr(:call, :*, Expr(:call, :tempname), ".", "png"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1381 =#, :env = Expr(:call, :get, :ENV, "GKSwstype", "0"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1382 =#, Expr(:ref, :ENV, "GKSwstype") = "png", #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1383 =#, Expr(:ref, :ENV, "GKS_FILEPATH") = :filepath, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1384 =#, Expr(:call, :gr_display, :plt, "png"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1385 =#, Expr(:call, Expr(:., :GR, :(:emergencyclosegks))), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1386 =#, Expr(:call, :write, :io, Expr(:call, :read, :filepath, :String)), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1387 =#, Expr(:call, :rm, :filepath), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1388 =#, Expr(:if, Expr(:call, :!=, :env, "0"), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1389 =#, Expr(:ref, :ENV, "GKSwstype") = :env), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1391 =#, Expr(:call, :pop!, :ENV, "GKSwstype")))))
  **incremental compilation may be broken for this module**

WARNING: eval from module Plots to MomentOpt:    
Expr(:function, Expr(:call, :_show, Expr(:::, :io, :IO), Expr(:::, Expr(:curly, :MIME, Expr(:call, :Symbol, "image/svg+xml"))), Expr(:::, :plt, Expr(:curly, :Plot, :GRBackend))), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1379 =#, Expr(:call, Expr(:., :GR, :(:emergencyclosegks))), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1380 =#, :filepath = Expr(:call, :*, Expr(:call, :tempname), ".", "svg"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1381 =#, :env = Expr(:call, :get, :ENV, "GKSwstype", "0"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1382 =#, Expr(:ref, :ENV, "GKSwstype") = "svg", #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1383 =#, Expr(:ref, :ENV, "GKS_FILEPATH") = :filepath, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1384 =#, Expr(:call, :gr_display, :plt, "svg"), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1385 =#, Expr(:call, Expr(:., :GR, :(:emergencyclosegks))), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1386 =#, Expr(:call, :write, :io, Expr(:call, :read, :filepath, :String)), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1387 =#, Expr(:call, :rm, :filepath), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1388 =#, Expr(:if, Expr(:call, :!=, :env, "0"), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1389 =#, Expr(:ref, :ENV, "GKSwstype") = :env), Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends/gr.jl"):1391 =#, Expr(:call, :pop!, :ENV, "GKSwstype")))))
  **incremental compilation may be broken for this module**

WARNING: eval from module Plots to MomentOpt:    
Expr(:call, Expr(:., :Sys, :(:isapple)))
  **incremental compilation may be broken for this module**

WARNING: eval from module Plots to MomentOpt:    
Expr(:||, Expr(:call, Expr(:., :Sys, :(:islinux))), Expr(:call, Expr(:., :Sys, :(:isbsd))))
  **incremental compilation may be broken for this module**

WARNING: eval from module Plots to MomentOpt:    
Expr(:call, Expr(:., :Sys, :(:iswindows)))
  **incremental compilation may be broken for this module**

WARNING: eval from module Main to MomentOpt:    
Expr(:block, #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends.jl"):320 =#, Expr(:import, Expr(:., :Plots)), #= Symbol("/Users/74097/.julia/packages/Plots/ex9On/src/backends.jl"):321 =#, Expr(:export, :Plots))
  **incremental compilation may be broken for this module**

Test Summary: | Pass Total
Running MomentOpt tests | 8 8
   Testing MomentOpt tests passed 

```

---

<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:** [September 14, 2018, 9:30am UTC](https://discourse.julialang.org/t/how-to-upgrade-my-non-registered-package-to-v0-7/14922/10 "2018-09-14T09:30:21Z")

</div>

That is probably `Plots` fault.

Edit: See also [https://github.com/JuliaLang/julia/issues/29059](https://github.com/JuliaLang/julia/issues/29059) and [fix #29059, unnecessary warning in precompile for `eval` in ` __init__ ` by JeffBezanson · Pull Request #29134 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/29134)
