From f9c76f0bcb2a26c8d96d878d1c480bf48b0460a0 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Mon, 28 Feb 2022 13:52:28 -0500 Subject: [PATCH] Add Pkg 1.8 news (#44370) --- NEWS.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/NEWS.md b/NEWS.md index b82e28130852f..caf9cd14a4568 100644 --- a/NEWS.md +++ b/NEWS.md @@ -111,6 +111,26 @@ Standard library changes * Intersect returns a result with the eltype of the type-promoted eltypes of the two inputs ([#41769]). * Iterating an `Iterators.Reverse` now falls back on reversing the eachindex iterator, if possible ([#43110]). +#### Package Manager + +* New `⌃` and `⌅` indicators beside packages in `pkg> status` that have new versions available. + `⌅` indicates when new versions cannot be installed ([Pkg#2906]). +* New `outdated::Bool` kwarg to `Pkg.status` (`--outdated` or `-o` in the REPL mode) to show + information about packages not at the latest version ([Pkg#2284]). +* New `compat::Bool` kwarg to `Pkg.status` (`--compat` or `-c` in the REPL mode) to show any [compat] + entries in the Project.toml ([Pkg#2702]). +* New `pkg> compat` (and `Pkg.compat`) mode for setting Project compat entries. Provides an interactive editor + via `pkg> compat`, or direct entry manipulation via `pkg> Foo 0.4,0.5` which can load current entries via tab-completion. + i.e. `pkg> compat Fo` autocompletes to `pkg> Foo 0.4,0.5` so that the existing entry can be edited ([Pkg#2702]). +* Pkg now only tries to download packages from the package server in case the server tracks a registry that contains + the package ([Pkg#2689]). +* `Pkg.instantiate` will now warn when a Project.toml is out of sync with a Manifest.toml. It does this by storing a hash + of the project deps and compat entries (other fields are ignored) in the manifest when it is resolved, so that any change + to the Project.toml deps or compat entries without a re-resolve can be detected ([Pkg#2815]). +* If `pkg> add` cannot find a package with the provided name it will now suggest similarly named packages that can be added ([Pkg#2985]). +* The julia version stored in the manifest no longer includes the build number i.e. master will now record as `1.9.0-DEV` ([Pkg#2995]). +* Interrupting a `pkg> test` will now be caught more reliably and exit back to the REPL gracefully ([Pkg#2933]). + #### InteractiveUtils * New macro `@time_imports` for reporting any time spent importing packages and their dependencies ([#41612]). @@ -211,6 +231,16 @@ Tooling Improvements * `GC.enable_logging(true)` can be used to log each garbage collection, with the time it took and the amount of memory that was collected ([#43511]). + + +[Pkg#2284]: https://github.com/JuliaLang/Pkg.jl/issues/2284 +[Pkg#2689]: https://github.com/JuliaLang/Pkg.jl/issues/2689 +[Pkg#2702]: https://github.com/JuliaLang/Pkg.jl/issues/2702 +[Pkg#2815]: https://github.com/JuliaLang/Pkg.jl/issues/2815 +[Pkg#2906]: https://github.com/JuliaLang/Pkg.jl/issues/2906 +[Pkg#2933]: https://github.com/JuliaLang/Pkg.jl/issues/2933 +[Pkg#2985]: https://github.com/JuliaLang/Pkg.jl/issues/2985 +[Pkg#2995]: https://github.com/JuliaLang/Pkg.jl/issues/2995 [#33711]: https://github.com/JuliaLang/julia/issues/33711