Skip to content

Commit e64798e

Browse files
authored
ap/update deps (#125)
* update go and bazel dependencies * make it work with bazel 6 * deprecate bazel 5.1.1 and switch to 6.0.0 in github actions
1 parent 6ffcfb3 commit e64798e

File tree

2,058 files changed

+260025
-62428
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,058 files changed

+260025
-62428
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.3.1
1+
6.0.0

.fasterci/config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
workflows:
44

55
- &build_workflow
6-
name: Faster CI / build (5.1.1)
7-
image: us.gcr.io/fasterci/bazelbuilder:9530886
6+
name: Faster CI / build (6.0.0)
7+
env:
8+
USE_BAZEL_VERSION: "6.0.0"
9+
image: us.gcr.io/fasterci/bazelbuilder:5e59f651dbb5
810
on:
911
push:
1012
branches:

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
bazel-version:
17-
- 5.1.1
17+
- 6.0.0
1818
- 5.3.1
1919
env:
2020
USE_BAZEL_VERSION: ${{ matrix.bazel-version }}

BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
# gazelle:build_tags darwin,linux
1212
# gazelle:exclude examples
13+
# gazelle:proto disable_global
1314

1415
load("@bazel_gazelle//:def.bzl", "gazelle")
1516
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")

WORKSPACE

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,19 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1414

1515
http_archive(
1616
name = "io_bazel_rules_go",
17-
sha256 = "56d8c5a5c91e1af73eca71a6fab2ced959b67c86d12ba37feedb0a2dfea441a6",
17+
sha256 = "dd926a88a564a9246713a9c00b35315f54cbd46b31a26d5d8fb264c07045f05d",
1818
urls = [
19-
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.37.0/rules_go-v0.37.0.zip",
20-
"https://github.com/bazelbuild/rules_go/releases/download/v0.37.0/rules_go-v0.37.0.zip",
19+
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
20+
"https://github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
21+
],
22+
)
23+
24+
http_archive(
25+
name = "com_github_bazelbuild_buildtools",
26+
sha256 = "ca524d4df8c91838b9e80543832cf54d945e8045f6a2b9db1a1d02eec20e8b8c",
27+
strip_prefix = "buildtools-6.0.1",
28+
urls = [
29+
"https://github.com/bazelbuild/buildtools/archive/refs/tags/6.0.1.tar.gz",
2130
],
2231
)
2332

@@ -41,6 +50,21 @@ rules_gitops_repositories()
4150
#
4251
# Development dependencies
4352
#
53+
54+
http_archive(
55+
name = "com_google_protobuf",
56+
sha256 = "d0f5f605d0d656007ce6c8b5a82df3037e1d8fe8b121ed42e536f569dec16113",
57+
strip_prefix = "protobuf-3.14.0",
58+
urls = [
59+
"https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.14.0.tar.gz",
60+
"https://github.com/protocolbuffers/protobuf/archive/v3.14.0.tar.gz",
61+
],
62+
)
63+
64+
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
65+
66+
protobuf_deps()
67+
4468
load(
4569
"@io_bazel_rules_docker//go:image.bzl",
4670
go_image_repositories = "repositories",
@@ -52,15 +76,6 @@ load("@bazel_skylib//lib:unittest.bzl", "register_unittest_toolchains")
5276

5377
register_unittest_toolchains()
5478

55-
http_archive(
56-
name = "com_github_bazelbuild_buildtools",
57-
sha256 = "ae34c344514e08c23e90da0e2d6cb700fcd28e80c02e23e4d5715dddcb42f7b3",
58-
strip_prefix = "buildtools-4.2.2",
59-
urls = [
60-
"https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.2.tar.gz",
61-
],
62-
)
63-
6479
load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies")
6580

6681
buildifier_dependencies()

gitops/analysis/BUILD

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
1-
load("@rules_proto//proto:defs.bzl", "proto_library")
21
load("@io_bazel_rules_go//go:def.bzl", "go_library")
3-
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
4-
5-
proto_library(
6-
name = "analysis_proto",
7-
srcs = ["analysis.proto"],
8-
visibility = ["//visibility:public"],
9-
deps = ["//gitops/blaze_query:blaze_query_proto"],
10-
)
11-
12-
go_proto_library(
13-
name = "analysis_go_proto",
14-
importpath = "github.com/adobe/rules_gitops/gitops/analysis",
15-
proto = ":analysis_proto",
16-
visibility = ["//visibility:public"],
17-
deps = ["//gitops/blaze_query:go_default_library"],
18-
)
192

203
go_library(
214
name = "go_default_library",
22-
embed = [":analysis_go_proto"],
5+
srcs = ["analysis.pb.go"],
236
importpath = "github.com/adobe/rules_gitops/gitops/analysis",
247
visibility = ["//visibility:public"],
8+
deps = [
9+
"//gitops/blaze_query:go_default_library",
10+
"//vendor/github.com/golang/protobuf/proto:go_default_library",
11+
],
2512
)

gitops/blaze_query/BUILD

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
load("@rules_proto//proto:defs.bzl", "proto_library")
2-
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
3-
41
# Copyright 2020 Adobe. All rights reserved.
52
# This file is licensed to you under the Apache License, Version 2.0 (the "License");
63
# you may not use this file except in compliance with the License. You may obtain a copy
@@ -17,20 +14,8 @@ licenses(["notice"]) # Apache 2.0
1714

1815
go_library(
1916
name = "go_default_library",
20-
embed = [":blaze_query_go_proto"],
21-
importpath = "github.com/adobe/rules_gitops/gitops/blaze_query",
22-
visibility = ["//visibility:public"],
23-
)
24-
25-
proto_library(
26-
name = "blaze_query_proto",
27-
srcs = ["build.proto"],
28-
visibility = ["//visibility:public"],
29-
)
30-
31-
go_proto_library(
32-
name = "blaze_query_go_proto",
17+
srcs = ["build.pb.go"],
3318
importpath = "github.com/adobe/rules_gitops/gitops/blaze_query",
34-
proto = ":blaze_query_proto",
3519
visibility = ["//visibility:public"],
20+
deps = ["//vendor/github.com/golang/protobuf/proto:go_default_library"],
3621
)

gitops/commitmsg/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ go_library(
2222
go_test(
2323
name = "go_default_test",
2424
srcs = ["commitmsg_test.go"],
25-
embed = [":go_default_library"],
25+
deps = [":go_default_library"],
2626
)

gitops/deps.bzl

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,32 +33,14 @@ def rules_gitops_dependencies():
3333
],
3434
)
3535

36-
maybe(
37-
http_archive,
38-
name = "com_google_protobuf",
39-
sha256 = "9748c0d90e54ea09e5e75fb7fac16edce15d2028d4356f32211cfa3c0e956564",
40-
strip_prefix = "protobuf-3.11.4",
41-
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.11.4.zip"],
42-
)
43-
44-
maybe(
45-
http_archive,
46-
name = "io_bazel_rules_go",
47-
sha256 = "56d8c5a5c91e1af73eca71a6fab2ced959b67c86d12ba37feedb0a2dfea441a6",
48-
urls = [
49-
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.37.0/rules_go-v0.37.0.zip",
50-
"https://github.com/bazelbuild/rules_go/releases/download/v0.37.0/rules_go-v0.37.0.zip",
51-
],
52-
)
53-
5436
# gazelle is required by go_image_repositories
5537
maybe(
5638
http_archive,
5739
name = "bazel_gazelle",
58-
sha256 = "efbbba6ac1a4fd342d5122cbdfdb82aeb2cf2862e35022c752eaddffada7c3f3",
40+
sha256 = "448e37e0dbf61d6fa8f00aaa12d191745e14f07c31cabfa731f0c8e8a4f41b97",
5941
urls = [
60-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.27.0/bazel-gazelle-v0.27.0.tar.gz",
61-
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.27.0/bazel-gazelle-v0.27.0.tar.gz",
42+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.28.0/bazel-gazelle-v0.28.0.tar.gz",
43+
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.28.0/bazel-gazelle-v0.28.0.tar.gz",
6244
],
6345
)
6446

gitops/prer/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ go_library(
2626
"//gitops/git/bitbucket:go_default_library",
2727
"//gitops/git/github:go_default_library",
2828
"//gitops/git/gitlab:go_default_library",
29-
"@com_github_golang_protobuf//proto:go_default_library",
29+
"//vendor/github.com/golang/protobuf/proto:go_default_library",
3030
],
3131
)
3232

gitops/repositories.bzl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ GtiOps rules repositories initialization
1313
"""
1414

1515
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
16-
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
17-
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
1816
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
1917
load("@io_bazel_rules_docker//repositories:repositories.bzl", container_repositories = "repositories")
2018
load("@io_bazel_rules_docker//repositories:go_repositories.bzl", container_go_deps = "go_deps")
@@ -27,9 +25,6 @@ def rules_gitops_repositories():
2725
"""
2826

2927
bazel_skylib_workspace()
30-
protobuf_deps()
31-
go_rules_dependencies()
32-
go_register_toolchains()
3328
gazelle_dependencies()
3429
container_repositories()
3530
container_go_deps()

go.mod

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,56 @@
11
module github.com/adobe/rules_gitops
22

3-
go 1.12
3+
go 1.19
44

55
require (
66
github.com/ghodss/yaml v1.0.0
77
github.com/golang/protobuf v1.5.2
8-
github.com/google/go-cmp v0.5.5
8+
github.com/google/go-cmp v0.5.9
99
github.com/google/go-github/v32 v32.1.0
10-
github.com/xanzy/go-gitlab v0.49.0
11-
golang.org/x/oauth2 v0.0.0-20210427180440-81ed05c6b58c
12-
k8s.io/api v0.21.0
13-
k8s.io/apimachinery v0.21.0
14-
k8s.io/client-go v0.21.0
10+
github.com/xanzy/go-gitlab v0.80.2
11+
golang.org/x/oauth2 v0.5.0
12+
k8s.io/api v0.26.1
13+
k8s.io/apimachinery v0.26.1
14+
k8s.io/client-go v0.26.1
15+
)
16+
17+
require (
18+
github.com/davecgh/go-spew v1.1.1 // indirect
19+
github.com/emicklei/go-restful/v3 v3.10.1 // indirect
20+
github.com/go-logr/logr v1.2.3 // indirect
21+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
22+
github.com/go-openapi/jsonreference v0.20.2 // indirect
23+
github.com/go-openapi/swag v0.22.3 // indirect
24+
github.com/gogo/protobuf v1.3.2 // indirect
25+
github.com/google/gnostic v0.6.9 // indirect
26+
github.com/google/go-querystring v1.1.0 // indirect
27+
github.com/google/gofuzz v1.2.0 // indirect
28+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
29+
github.com/hashicorp/go-retryablehttp v0.7.2 // indirect
30+
github.com/imdario/mergo v0.3.13 // indirect
31+
github.com/josharian/intern v1.0.0 // indirect
32+
github.com/json-iterator/go v1.1.12 // indirect
33+
github.com/mailru/easyjson v0.7.7 // indirect
34+
github.com/moby/spdystream v0.2.0 // indirect
35+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
36+
github.com/modern-go/reflect2 v1.0.2 // indirect
37+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
38+
github.com/spf13/pflag v1.0.5 // indirect
39+
golang.org/x/crypto v0.6.0 // indirect
40+
golang.org/x/net v0.7.0 // indirect
41+
golang.org/x/sys v0.5.0 // indirect
42+
golang.org/x/term v0.5.0 // indirect
43+
golang.org/x/text v0.7.0 // indirect
44+
golang.org/x/time v0.3.0 // indirect
45+
google.golang.org/appengine v1.6.7 // indirect
46+
google.golang.org/protobuf v1.28.1 // indirect
47+
gopkg.in/inf.v0 v0.9.1 // indirect
48+
gopkg.in/yaml.v2 v2.4.0 // indirect
49+
gopkg.in/yaml.v3 v3.0.1 // indirect
50+
k8s.io/klog/v2 v2.90.0 // indirect
51+
k8s.io/kube-openapi v0.0.0-20230217203603-ff9a8e8fa21d // indirect
52+
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect
53+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
54+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
55+
sigs.k8s.io/yaml v1.3.0 // indirect
1556
)

0 commit comments

Comments
 (0)