ace-lab 0.16.2 → 0.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59e9a71fd2aca6e0e830fa27a018ce5fa98ec6425dc16b9e173697753aa1b61f
4
- data.tar.gz: 2ab5294e49ea83a6eba1703370e683c248c6d140d1721c4c8b76b6481399538f
3
+ metadata.gz: a1f579c031ce43080f9b2d888d0b2562ee4e78eade7b83b623417281c3e173ef
4
+ data.tar.gz: 186b2c8a7af37bbc265ab4b10347a1c57d614605647d42da9804e9f8f6e0d4e2
5
5
  SHA512:
6
- metadata.gz: 672d4bedbd558125d2f14c8c13bcc62d2c4b9653e1eca3c726155d0db7fca78260465bb8c188fbed2a52185b546780e8ec3a871533ab90b780c4c92b19881f12
7
- data.tar.gz: 6afe8fa7d8d110a5876b6af237b2a88eff6fa2ad9fc2b2401aab40aa0b22c109f2a71e7909ce11ca50e295781dc1785c5e990d95af7f9576c298dcfad3807c95
6
+ metadata.gz: 772408cad32f95576d19d2639dfe1f1ecaada5651680e16a35b14829561cd7139d75b00bcc7dd985ecc626ca839d13d986babef1fa35600eaea6d85da6003d03
7
+ data.tar.gz: 0450d71541435490cb5ee4cd4cf168eb44affa84c3b2f026f7f90dd70d5cdc07feadc7e50498ea0564463fda8bbf768fb2541eb0cfb7f7ffea69904758717cdb
data/CHANGELOG.md CHANGED
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.16.3] - 2026-11-15
11
+
12
+ ### Fixed
13
+
14
+ - Bind readiness probes to the manifest runtime and the running Ruby interpreter, including noninteractive SSH environments without Ruby on PATH. Never resolve role instructions through a project binstub when a runtime is declared.
15
+ - Keep extension projection receipts unique across upgrades and repair previously duplicated entries on reprojection, so unchanged retries converge.
16
+
10
17
  ## [0.16.2] - 2026-11-15
11
18
 
12
19
  ### Fixed
@@ -172,7 +172,7 @@ module Ace
172
172
  retained = previous.filter_map do |relative|
173
173
  ExtensionProjection.validate_destination!(output_dir, relative)
174
174
  target = File.join(output_dir, relative)
175
- next relative if expected.key?(relative)
175
+ next if expected.key?(relative)
176
176
 
177
177
  FileUtils.rm_f(target)
178
178
  File.exist?(target) ? relative : nil
@@ -300,7 +300,8 @@ module Ace
300
300
  def runtime_argv(gem_home, argv)
301
301
  ["env"] +
302
302
  (BUNDLER_ENV_KEYS + ENV.keys.grep(/\ABUNDLER?_/)).uniq.flat_map { |key| ["-u", key] } +
303
- ["GEM_HOME=#{gem_home}", "GEM_PATH=#{gem_home}"] + argv
303
+ ["GEM_HOME=#{gem_home}", "GEM_PATH=#{gem_home}",
304
+ "PATH=#{[File.dirname(Gem.ruby), File.join(gem_home, "bin"), ENV.fetch("PATH", "")].join(File::PATH_SEPARATOR)}"] + argv
304
305
  end
305
306
 
306
307
  # `gem list <name> --exact --local` prints one `name (v1, v2)`
@@ -89,6 +89,7 @@ module Ace
89
89
  # as install/prepare
90
90
  def call
91
91
  manifest = Molecules::InstallManifestLoader.load(path: manifest_path, platform: platform)
92
+ @runtime_gem_home = manifest["gemset"]["gems"].empty? ? nil : manifest["gemset"]["gem_home"]
92
93
  entries = manifest["accounts"].to_h { |a| [a["username"], @account_lookup.call(a["username"])] }
93
94
  executors = target_executors(manifest, entries)
94
95
 
@@ -264,6 +265,13 @@ module Ace
264
265
  # Match the executor's resolver: installed mode always resolves the
265
266
  # installed launcher, and root never executes repository binstubs.
266
267
  def nav_binary(project_root)
268
+ if @runtime_gem_home
269
+ launcher = File.join(@runtime_gem_home, "bin", "ace-nav")
270
+ unless File.executable?(launcher)
271
+ raise Ace::Support::Cli::Toolchain::Error, "target runtime ace-nav launcher unavailable: #{launcher}"
272
+ end
273
+ return launcher
274
+ end
267
275
  return Ace::Support::Cli::Toolchain.executable("ace-nav") if Ace::Support::Cli::Toolchain.installed?
268
276
 
269
277
  binstub = File.join(project_root, "bin", "ace-nav")
@@ -271,8 +279,19 @@ module Ace
271
279
  use_binstub ? binstub : "ace-nav"
272
280
  end
273
281
 
282
+ def nav_environment
283
+ return Ace::Support::Cli::Toolchain.child_environment unless @runtime_gem_home
284
+
285
+ ENV.keys.grep(/\ABUNDLER?_/).to_h { |key| [key, nil] }.merge(
286
+ "RUBYOPT" => nil, "RUBYLIB" => nil, "ACE_TOOLCHAIN" => "installed",
287
+ "GEM_HOME" => @runtime_gem_home, "GEM_PATH" => @runtime_gem_home,
288
+ "PATH" => [File.dirname(Gem.ruby), File.join(@runtime_gem_home, "bin"),
289
+ ENV.fetch("PATH", "")].join(File::PATH_SEPARATOR)
290
+ )
291
+ end
292
+
274
293
  def run_nav(argv, cwd)
275
- out, err, status = Open3.capture3(Ace::Support::Cli::Toolchain.child_environment, *argv, chdir: cwd)
294
+ out, err, status = Open3.capture3(nav_environment, *argv, chdir: cwd)
276
295
  {"status" => status.success? ? "ok" : (status.exitstatus || "signal #{status.termsig}"),
277
296
  "out" => out, "err" => err}
278
297
  rescue Errno::ENOENT
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ace
4
4
  module Lab
5
- VERSION = "0.16.2"
5
+ VERSION = "0.16.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ace-lab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.2
4
+ version: 0.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Czyz