# How to get the manifest version?

**URL:** https://discourse.julialang.org/t/how-to-get-the-manifest-version/76633
**Category:** General Usage
**Tags:** pkg
**Created:** [February 17, 2022, 3:56pm UTC](https://discourse.julialang.org/t/how-to-get-the-manifest-version/76633 "2022-02-17T15:56:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bluesmoon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bluesmoon/32/327_2.png) [@bluesmoon](https://discourse.julialang.org/u/bluesmoon)
#### Post date: [February 17, 2022, 3:56pm UTC](https://discourse.julialang.org/t/how-to-get-the-manifest-version/76633/1 "2022-02-17T15:56:38Z")

</div>

I’m moving Manifest files from Julia 1.6 to 1.7 and calling `Pkg.upgrade_manifest()` to do this.

Unfortunately, if a manifest is already at version 2.0, then `Pkg.upgrade_manifest()` throws an exception:

```julia
ERROR: LoadError: Format of manifest file at `Modules-1.0/Manifest.toml` already up to date: manifest_format == 2.0.0
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types /julia-1.7.2/share/julia/stdlib/v1.7/Pkg/src/Types.jl:68
 [2] upgrade_manifest(ctx::Pkg.Types.Context)
   @ Pkg.API /julia-1.7.2/share/julia/stdlib/v1.7/Pkg/src/API.jl:1689
 [3] upgrade_manifest()
   @ Pkg.API /julia-1.7.2/share/julia/stdlib/v1.7/Pkg/src/API.jl:1687

```

Can we either change this to display a warning and continue, or alternately, is there a way for me to determine the version of the manifest and just skip calling `upgrade_manifest` if it is the right version?
