dependabot-go_modules 0.237.0 → 0.239.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea9baaa18143c4d430ffe70dfa21aab4eb2a37a475b7098c792fc30ee64b5446
4
- data.tar.gz: fe9e70dbd643330697f7d80613c874594e95cfbf80da6a6fe36f2111511d0823
3
+ metadata.gz: 10eb41f98ea1a9ad7102bf60c006aa650e5c62a67e360a4c0e3319bd5a122e2b
4
+ data.tar.gz: eb7260afc262b3ff8873df1ba601f20c98a4f732065c175b584b89d55b4f7bcd
5
5
  SHA512:
6
- metadata.gz: '09d90dedd501d57b4965987e1b0424f701b0641ebacce2f6ecc444fee1cc73c43308837335db846b90f50863c93cd9de5d7328f0d6328571c5c725fbdc54cd64'
7
- data.tar.gz: 538d324ff89add6117bc298e45e9630cc69adb43833a54d3c84b7c78d05716d9596298a9bdd3bfaed66346dc917e41760b48a93d602715eb484f59a1c9168e50
6
+ metadata.gz: 172d7f7de572fe7d54984c3184ff817ba21505020d0126a437eae851d3d9fccce38e6abfdc030b4efc820ecac0031cd161ff459d169bafa190158fb8926ea18d
7
+ data.tar.gz: 7baaab1827185336b53b44b6f760ae5b59dfa9bdaddb6e99a7fab9e838846d3eab51dc705f1c3b8e487a0a941ffcdaed22333e4fa74b87651b5a7ea830e4d113
data/helpers/build CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  set -e
4
4
 
@@ -5,7 +5,6 @@ require "dependabot/shared_helpers"
5
5
  require "dependabot/errors"
6
6
  require "dependabot/logger"
7
7
  require "dependabot/go_modules/file_updater"
8
- require "dependabot/go_modules/native_helpers"
9
8
  require "dependabot/go_modules/replace_stubber"
10
9
  require "dependabot/go_modules/resolvability_errors"
11
10
 
@@ -84,6 +84,7 @@ module Dependabot
84
84
  SharedHelpers.with_git_configured(credentials: []) do
85
85
  `git config --global user.email "no-reply@github.com"`
86
86
  `git config --global user.name "Dependabot"`
87
+ `git config --global init.defaultBranch "placeholder-default-branch"`
87
88
  `git init .`
88
89
  `git add .`
89
90
  `git commit -m'fake repo_contents_path'`
@@ -7,12 +7,17 @@
7
7
  # - https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md #
8
8
  ################################################################################
9
9
 
10
+ require "sorbet-runtime"
11
+
12
+ require "dependabot/requirement"
10
13
  require "dependabot/utils"
11
14
  require "dependabot/go_modules/version"
12
15
 
13
16
  module Dependabot
14
17
  module GoModules
15
- class Requirement < Gem::Requirement
18
+ class Requirement < Dependabot::Requirement
19
+ extend T::Sig
20
+
16
21
  WILDCARD_REGEX = /(?:\.|^)[xX*]/
17
22
  OR_SEPARATOR = /(?<=[a-zA-Z0-9*])\s*\|{2}/
18
23
 
@@ -40,6 +45,7 @@ module Dependabot
40
45
 
41
46
  # Returns an array of requirements. At least one requirement from the
42
47
  # returned array must be satisfied for a version to be valid.
48
+ sig { override.params(requirement_string: T.nilable(String)).returns(T::Array[Requirement]) }
43
49
  def self.requirements_array(requirement_string)
44
50
  return [new(nil)] if requirement_string.nil?
45
51
 
@@ -5,7 +5,6 @@ require "dependabot/update_checkers"
5
5
  require "dependabot/update_checkers/base"
6
6
  require "dependabot/shared_helpers"
7
7
  require "dependabot/errors"
8
- require "dependabot/go_modules/native_helpers"
9
8
  require "dependabot/go_modules/version"
10
9
 
11
10
  module Dependabot
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-go_modules
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.237.0
4
+ version: 0.239.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-21 00:00:00.000000000 Z
11
+ date: 2023-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.237.0
19
+ version: 0.239.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.237.0
26
+ version: 0.239.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.57.2
117
+ version: 1.58.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.57.2
124
+ version: 1.58.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-performance
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -239,7 +239,7 @@ licenses:
239
239
  - Nonstandard
240
240
  metadata:
241
241
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
242
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.237.0
242
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.239.0
243
243
  post_install_message:
244
244
  rdoc_options: []
245
245
  require_paths: