Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/danger
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2019-06-05 20:06:46 +0300
committerJohn Cai <jcai@gitlab.com>2019-06-05 20:06:46 +0300
commit0a07d60bcb86287f96fd4e12f0ba1603b79e96fd (patch)
treeeae3648315f30626e1d0be7b12960786cf186f1e /danger
parent9d626b5cbe3272dc100c674c4002fc41c2ab2b1f (diff)
Replace govendor with 'go mod'
Diffstat (limited to 'danger')
-rw-r--r--danger/govendor_proto_check/Dangerfile14
1 files changed, 2 insertions, 12 deletions
diff --git a/danger/govendor_proto_check/Dangerfile b/danger/govendor_proto_check/Dangerfile
index 9f186fc4b..035baa81e 100644
--- a/danger/govendor_proto_check/Dangerfile
+++ b/danger/govendor_proto_check/Dangerfile
@@ -1,15 +1,5 @@
-require 'json'
-
-VENDOR_JSON = 'vendor/vendor.json'
-
-if git.modified_files.include?(VENDOR_JSON)
- parsed_json = JSON.parse(File.read(VENDOR_JSON))
-
- proto = parsed_json["package"]&.find { |h| h["path"].start_with?("gitlab.com/gitlab-org/gitaly-proto") }
-
- unless proto["version"] && proto["version"] =~ /\Av\d+\./
- fail("gitaly-proto version is incorrect")
- end
+if git.modified_files.include?('go.mod') && !system('_support/gitaly-proto-tagged')
+ fail("gitaly-proto version is incorrect")
end
# vim: ft=ruby