Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup/directories/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ runs:
path: ${{ inputs.srcdir }}
fetch-depth: ${{ inputs.fetch-depth }}

- uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: ${{ inputs.srcdir }}/.downloaded-cache
key: ${{ runner.os }}-${{ runner.arch }}-downloaded-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:

- name: Restore vcpkg artifact
id: restore-vcpkg
uses: actions/cache/restore@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: src\vcpkg_installed
key: windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
Expand All @@ -100,7 +100,7 @@ jobs:
if: ${{ ! steps.restore-vcpkg.outputs.cache-hit }}

- name: Save vcpkg artifact
uses: actions/cache/save@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: src\vcpkg_installed
key: windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
Expand Down
2 changes: 0 additions & 2 deletions gc/default/default.c
Original file line number Diff line number Diff line change
Expand Up @@ -7471,7 +7471,6 @@ enum gc_stat_sym {
gc_stat_sym_oldmalloc_increase_bytes,
gc_stat_sym_oldmalloc_increase_bytes_limit,
#endif
gc_stat_sym_weak_references_count,
#if RGENGC_PROFILE
gc_stat_sym_total_generated_normal_object_count,
gc_stat_sym_total_generated_shady_object_count,
Expand Down Expand Up @@ -7522,7 +7521,6 @@ setup_gc_stat_symbols(void)
S(oldmalloc_increase_bytes);
S(oldmalloc_increase_bytes_limit);
#endif
S(weak_references_count);
#if RGENGC_PROFILE
S(total_generated_normal_object_count);
S(total_generated_shady_object_count);
Expand Down
1 change: 1 addition & 0 deletions spec/bundler/bundler/gem_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ def sha512_hexdigest(path)
credentials = double("credentials", "file?" => true)
allow(Bundler.user_home).to receive(:join).
with(".gem/credentials").and_return(credentials)
allow(Bundler.user_home).to receive(:join).and_call_original
end

describe "success messaging" do
Expand Down
12 changes: 11 additions & 1 deletion spec/bundler/support/path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,17 @@ def tmp(*path)
end

def tmp_root
source_root.join("tmp")
if ruby_core? && (tmpdir = ENV["TMPDIR"])
# Use realpath to resolve any symlinks in TMPDIR (e.g., on macOS /var -> /private/var)
real = begin
File.realpath(tmpdir)
rescue Errno::ENOENT, Errno::EACCES
tmpdir
end
Pathname(real)
else
source_root.join("tmp")
end
end

# Bump this version whenever you make a breaking change to the spec setup
Expand Down
13 changes: 12 additions & 1 deletion spec/bundler/support/rubygems_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,18 @@ def test_setup
# sign extension bundles on macOS, to avoid trying to find the specified key
# from the fake $HOME/Library/Keychains directory.
ENV.delete "RUBY_CODESIGN"
ENV["TMPDIR"] = Path.tmpdir.to_s
if Path.ruby_core?
if (tmpdir = ENV["TMPDIR"])
tmpdir_real = begin
File.realpath(tmpdir)
rescue Errno::ENOENT, Errno::EACCES
tmpdir
end
ENV["TMPDIR"] = tmpdir_real if tmpdir_real != tmpdir
end
else
ENV["TMPDIR"] = Path.tmpdir.to_s
end

require "rubygems/user_interaction"
Gem::DefaultUserInteraction.ui = Gem::SilentUI.new
Expand Down