dependabot-common 0.95.56 → 0.95.57
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 +4 -4
- data/lib/dependabot/errors.rb +15 -0
- data/lib/dependabot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 98c1ee56afdee77f96e2069cf74695b79b2beacc72d80fd294c4118d5ad585bf
|
|
4
|
+
data.tar.gz: e14ac355f25ffd73aa6ccb7046f75904458b8ec28935aaf0c4f4bd4438931e3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24d033f5e3cd86039b79a01c1d760bc3e8bc66a00391a04ba156e8ce4126ed1dd42d3786a90600339308e538e2e884fb4bc09cbb39329fe0362996851e55ff1d
|
|
7
|
+
data.tar.gz: 8d0b473fca1b44fa72ebd281387dca860cfd5a7d204de6940ea6b8da215c44e07b1c194d39014ee58a81aaf70995f84a1d1c201202ae463d2c0a14644dad25fc
|
data/lib/dependabot/errors.rb
CHANGED
|
@@ -176,4 +176,19 @@ module Dependabot
|
|
|
176
176
|
super(msg)
|
|
177
177
|
end
|
|
178
178
|
end
|
|
179
|
+
|
|
180
|
+
class GoModulePathMismatch < DependabotError
|
|
181
|
+
attr_reader :go_mod, :declared_path, :discovered_path
|
|
182
|
+
|
|
183
|
+
def initialize(go_mod, declared_path, discovered_path)
|
|
184
|
+
@go_mod = go_mod
|
|
185
|
+
@declared_path = declared_path
|
|
186
|
+
@discovered_path = discovered_path
|
|
187
|
+
|
|
188
|
+
msg = "The module path '#{declared_path}' found in #{go_mod} doesn't "\
|
|
189
|
+
"match the actual path '#{discovered_path}' in the dependency's "\
|
|
190
|
+
"go.mod"
|
|
191
|
+
super(msg)
|
|
192
|
+
end
|
|
193
|
+
end
|
|
179
194
|
end
|
data/lib/dependabot/version.rb
CHANGED