Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backports release 1.11 #55855

Merged
merged 10 commits into from
Sep 25, 2024
Merged

Backports release 1.11 #55855

merged 10 commits into from
Sep 25, 2024

Commits on Sep 24, 2024

  1. Add compat entry for Base.donotdelete (#55773)

    (cherry picked from commit 346f38b)
    LilithHafner authored and KristofferC committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    5548790 View commit details
    Browse the repository at this point in the history
  2. Fix shell cd error when working dir has been deleted (#41244)

    root cause:
    if current dir has been deleted, then pwd() will throw an IOError:
    pwd(): no such file or directory (ENOENT)
    
    ---------
    
    Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
    (cherry picked from commit 48ddd2d)
    norci authored and KristofferC committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    9db412b View commit details
    Browse the repository at this point in the history
  3. fix #52986, regression in @doc of macro without REPL loaded (#55795)

    fix #52986
    
    (cherry picked from commit 4045e7b)
    JeffBezanson authored and KristofferC committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    b0bf394 View commit details
    Browse the repository at this point in the history
  4. [Dates] Make test more robust against non-UTC timezones (#55829)

    `%M` is the format specifier for the minutes, not the month (which
    should be `%m`), and it was used twice.
    
    Also, on macOS `Libc.strptime` internally calls `mktime` which depends
    on the local timezone. We now temporarily set `TZ=UTC` to avoid
    depending on the local timezone.
    
    Fix #55827.
    
    (cherry picked from commit d6fa66f)
    giordano authored and KristofferC committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    1d51535 View commit details
    Browse the repository at this point in the history
  5. fall back to slower stat filesize if optimized filesize fails (#55641)

    (cherry picked from commit fc9f147)
    IanButterworth authored and KristofferC committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    47e8cab View commit details
    Browse the repository at this point in the history
  6. Add invokelatest barrier to string(...) in @assert (#55739)

    This change protects `@assert` from invalidations to `Base.string(...)`
    by adding an `invokelatest` barrier.
    
    A common source of invalidations right now is `print(io,
    join(args...))`. The problem is:
    1. Inference concludes that `join(::Any...)` returns
    `Union{String,AnnotatedString}`
    2. The `print` call is union-split to `String` and `AnnotatedString`
    3. This code is now invalidated when StyledStrings defines `print(io,
    ::AnnotatedString)`
    
    The invalidation chain for `@assert` is similar: ` @Assert 1 == 1` calls
    into `string(::Expr)` which calls into `print(io, join(args::Any...))`.
    Unfortunately that leads to the invalidation of almost all `@assert`s
    without an explicit error message
    
    Similar to
    #55583 (comment)
    
    (cherry picked from commit 945517b)
    topolarity authored and KristofferC committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    c86965b View commit details
    Browse the repository at this point in the history
  7. use inferencebarrier instead of invokelatest for 1-arg @assert (#…

    …55783)
    
    This version would be better as per this comment:
    <#55739 (review)>
    I confirmed this still allows us to avoid invalidations reported at
    #55583.
    
    (cherry picked from commit f808606)
    aviatesk committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    9e82e60 View commit details
    Browse the repository at this point in the history
  8. privatize annotated string API, take two (#55845)

    #55453 is stuck on StyledStrings
    and Base documentation being entangled and there isn't a good way to
    have the documentation of Base types / methods live in an stdlib. This
    is a stop gap solution to finally be able to move forwards with 1.11.
    
    (cherry picked from commit db6d277)
    KristofferC authored and aviatesk committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    056a287 View commit details
    Browse the repository at this point in the history
  9. 🤖 [master] Bump the Downloads stdlib from 1061ecc to 89d3c7d (#55854)

    Stdlib: Downloads
    URL: https://github.com/JuliaLang/Downloads.jl.git
    Stdlib branch: master
    Julia branch: master
    Old commit: 1061ecc
    New commit: 89d3c7d
    Julia version: 1.12.0-DEV
    Downloads version: 1.6.0(It's okay that it doesn't match)
    Bump invoked by: @KristofferC
    Powered by:
    [BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl)
    
    Diff:
    JuliaLang/Downloads.jl@1061ecc...89d3c7d
    
    ```
    $ git log --oneline 1061ecc..89d3c7d
    89d3c7d fix cancelling upload requests (#259)
    df33406 gracefully cancel a request (#256)
    ```
    
    Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
    (cherry picked from commit c3af4fc)
    DilumAluthgeBot authored and aviatesk committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    0e17bd7 View commit details
    Browse the repository at this point in the history
  10. NEWS entry for deletion of length(::Stateful) (#55858)

    Will update History.md on master if this gets merged.
    
    xref #47790
    
    xref #51747
    
    xref #54953
    
    ---------
    
    Co-authored-by: Jameson Nash <vtjnash@gmail.com>
    nsajko and vtjnash authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    704fdc6 View commit details
    Browse the repository at this point in the history