File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed
Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 11name = " AutoHashEquals"
22uuid = " 15f4f7f2-30c1-5605-9d31-71845cf9641f"
33authors = [" Neal Gafter <neal@gafter.com>" , " andrew cooke <andrew@acooke.org>" ]
4- version = " 2.1.0"
5-
6- [deps ]
7- Pkg = " 44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
4+ version = " 2.2.0"
85
96[compat ]
10- julia = " 1.8 "
7+ julia = " 1.9 "
Original file line number Diff line number Diff line change 1- using Pkg
2-
31const is_expr = Base. Meta. isexpr
42
5- function pkgversion(m:: Module )
6- pkgdir = dirname(string(first(methods(m. eval)). file))
7- toml = Pkg. TOML. parsefile(joinpath(pkgdir, " .." , " Project.toml" ))
8- VersionNumber(toml[" version" ])
9- end
10-
113function if_has_package(
124 action:: Function ,
135 name:: String ,
@@ -17,7 +9,7 @@ function if_has_package(
179 pkgid = Base. PkgId(uuid, name)
1810 if Base. root_module_exists(pkgid)
1911 pkg = Base. root_module(pkgid)
20- if pkgversion(pkg) >= version
12+ if Base . pkgversion(pkg) >= version
2113 return action(pkg)
2214 end
2315 end
You can’t perform that action at this time.
0 commit comments