From dd2321bf62d3f2eec7a10bc74087549a585e7a55 Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Sat, 1 Dec 2018 15:01:48 +1300 Subject: [PATCH] News and compat annotation for #29108 (current_project() / --project=@.) --- NEWS.md | 3 +++ doc/src/manual/getting-started.md | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/NEWS.md b/NEWS.md index a29bd043102482..e99a74f2cdf599 100644 --- a/NEWS.md +++ b/NEWS.md @@ -81,6 +81,9 @@ Standard library changes * `parse(Bool, str)` is now supported ([#29997]). * `copyto!(::AbstractMatrix, ::UniformScaling)` supports rectangular matrices now ([#28790]). * In `put!(c::Channel{T}, v)`, `v` now gets converted to `T` as `put!` is being called ([#29092]). + * `current_project()` now searches the parent directories of a Git repository for a `Project.toml` file. + This also affects the behavior of the `--project` command line option when using the default + `--project=@.` ([#29108]). Compiler/Runtime improvements ----------------------------- diff --git a/doc/src/manual/getting-started.md b/doc/src/manual/getting-started.md index 9e5d55afc665c4..f6fa6226d3c01c 100644 --- a/doc/src/manual/getting-started.md +++ b/doc/src/manual/getting-started.md @@ -125,6 +125,11 @@ julia [switches] -- [programfile] [args...] |`--track-allocation={none\|user\|all}` |Count bytes allocated by each source line| |`--track-allocation` |equivalent to `--track-allocation=user`| +!!! compat "Julia 1.1" + In Julia 1.0, the default `--project=@.` option did not search up from the root + directory of a Git repository for the `Project.toml` file. From Julia 1.1 forward, it + does. + ## Resources A curated list of useful learning resources to help new users get started can be found on the [learning](https://julialang.org/learning/) page of the main Julia web site.