autobuild 1.25.1 → 1.25.2

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: e80fda7259afb401296183494e07a8a08f1ef22c2b8cab1f54577c7527aa72ed
4
- data.tar.gz: 89a5471c0b5afb613757dd04ac92eeb2acc0fe3fdf3cb419eb729dc2c8661e98
3
+ metadata.gz: 776341641d5c861e5f7a2901347fa270d9e05eb1a5f7d214353c05ce25873fdf
4
+ data.tar.gz: 7a71cd5a64584ff2a51a19df3207f5a5de1be61fbc531247c040b12a96a8e206
5
5
  SHA512:
6
- metadata.gz: 54d5bbccd77d298c58cc4b8e437fcb0de325252de23d83b73aafa02ad0a4c0476177913fdfc1634022dcc4b4abc90381534f081ff1d96f58a18f400c8985bc84
7
- data.tar.gz: fa6f9ae365e2314d1844004924fbab9c6da73d5cebc7a3244bb6092462564d5538342496f85f79d2d54e2e13717dd140341571582b8867976cdfd8d86d3ddbc9
6
+ metadata.gz: f82314c0cc4b396805b5eb4360c618e9447514c233c2c907eccd47de3b553d173dbc0fecd1357b64df58817f61123499d31c13f7c6870da0172223bfb6632ca1
7
+ data.tar.gz: d01329c9ecd6d3d1dce42864ea2ed91284b1031152b4671f591bbe43042bc7190140b95da7073be72c0fc51e2d719637476c8d2bb0fdd59d233642314790bea7
@@ -179,8 +179,18 @@ module Autobuild
179
179
  with_submodules: false,
180
180
  fingerprint_mode: Git.default_fingerprint_mode,
181
181
  single_branch: Git.single_branch?,
182
- shallow: Git.shallow?
182
+ shallow: nil
183
183
  )
184
+ if gitopts[:shallow].nil? && Git.shallow?
185
+ # Support for shallow clones is limited ... do not auto-set it
186
+ # if we are in conditions where it will generate an error later
187
+ gitopts[:shallow] =
188
+ if gitopts[:tag]
189
+ gitopts[:single_branch]
190
+ else
191
+ !gitopts[:commit]
192
+ end
193
+ end
184
194
 
185
195
  if gitopts[:branch] && branch
186
196
  raise ConfigException, "git branch specified with both the option hash "\
@@ -1303,8 +1313,11 @@ module Autobuild
1303
1313
  return false
1304
1314
  end
1305
1315
  if tag && !single_branch?
1306
- Autoproj.warn "#{package.name}: "\
1307
- "Cannot pin a tag while doing a shallow clone"
1316
+ Autoproj.warn(
1317
+ "#{package.name}: "\
1318
+ "Cannot pin a tag while doing a shallow clone " \
1319
+ "if single_branch is not set"
1320
+ )
1308
1321
  return false
1309
1322
  end
1310
1323
  if @remote_branch
@@ -1,3 +1,3 @@
1
1
  module Autobuild
2
- VERSION = "1.25.1".freeze unless defined? Autobuild::VERSION
2
+ VERSION = "1.25.2".freeze unless defined? Autobuild::VERSION
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.1
4
+ version: 1.25.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-11 00:00:00.000000000 Z
11
+ date: 2026-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -285,7 +285,7 @@ homepage: http://rock-robotics.org
285
285
  licenses:
286
286
  - BSD
287
287
  metadata: {}
288
- post_install_message:
288
+ post_install_message:
289
289
  rdoc_options: []
290
290
  require_paths:
291
291
  - lib
@@ -300,8 +300,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
300
  - !ruby/object:Gem::Version
301
301
  version: '0'
302
302
  requirements: []
303
- rubygems_version: 3.1.6
304
- signing_key:
303
+ rubygems_version: 3.4.20
304
+ signing_key:
305
305
  specification_version: 4
306
306
  summary: Library to handle build systems and import mechanisms
307
307
  test_files: []