Skip to content

Commit

Permalink
Merge pull request #4066 from JuliaLang/backports-release-1.11
Browse files Browse the repository at this point in the history
[release-1.11] 1.11 Backports
  • Loading branch information
IanButterworth authored Nov 4, 2024
2 parents 9438b6e + 6886c9e commit af1088b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
pkg-server:
- "pkg.julialang.org" # Default to this for all except specific cases
julia-version:
- 'nightly'
- '1.11'
exclude:
- os: ubuntu-latest
julia-arch: aarch64
Expand All @@ -48,11 +48,11 @@ jobs:
include:
- os: ubuntu-latest
julia-arch: 'x64'
julia-version: 'nightly'
julia-version: '1.11'
pkg-server: ""
- os: ubuntu-latest
julia-arch: 'x64'
julia-version: 'nightly'
julia-version: '1.11'
pkg-server: "pkg.julialang.org"
steps:
- name: Set git to use LF and fix TEMP on windows
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
- uses: julia-actions/setup-julia@v2
with:
# version: '1.6'
version: 'nightly'
version: '1.11'
- name: Generate docs
run: |
julia --project --color=yes -e 'using Pkg; Pkg.activate("docs"); Pkg.instantiate(); Pkg.develop(PackageSpec(path = pwd()))'
Expand Down
7 changes: 7 additions & 0 deletions src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@ end
####################

function load_tree_hash!(registries::Vector{Registry.RegistryInstance}, pkg::PackageSpec, julia_version)
if is_stdlib(pkg.uuid, julia_version) && pkg.tree_hash !== nothing
# manifests from newer julia versions might have stdlibs that are upgradable (FORMER_STDLIBS)
# that have tree_hash recorded, which we need to clear for this version where they are not upgradable
# given regular stdlibs don't have tree_hash recorded
pkg.tree_hash = nothing
return pkg
end
tracking_registered_version(pkg, julia_version) || return pkg
hash = nothing
for reg in registries
Expand Down

0 comments on commit af1088b

Please sign in to comment.