-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: confirm 1.6 and 1.7 artifacts naming scheme co-exist
- Loading branch information
1 parent
e3cbb5b
commit fb5b14d
Showing
7 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
load("@bazel_skylib//rules:diff_test.bzl", "diff_test") | ||
load("@bazel_skylib//rules:write_file.bzl", "write_file") | ||
load("@rules_jq//jq:defs.bzl", "jq_eval") | ||
|
||
jq_eval( | ||
name = "actual", | ||
srcs = ["sample.yaml"], | ||
filter = ".a.b", | ||
raw_output = True, | ||
) | ||
|
||
write_file( | ||
name = "expected", | ||
out = "out.yaml", | ||
content = [ | ||
"123", | ||
"", | ||
], | ||
) | ||
|
||
diff_test( | ||
name = "check_eval", | ||
file1 = ":expected", | ||
file2 = ":actual", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
workspace(name = "basic-1.6") | ||
|
||
# When using in your project, this can be a direct cut-n-paste, however you should replace the | ||
# local_repository with a http_archive() block similar to the following, using the version and | ||
# sha256 matching your desired release | ||
# | ||
# load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
# | ||
# http_archive( | ||
# name = "rules_jq", | ||
# sha256 = "52771b5f7fb5017b0f5a3816b46624d2b9a336ddc178b261de988d969cd329d8", | ||
# url = "https://github.com/jqlang/bazel_rules_jq/releases/download/0.0.1/bazel_rules_jq-v0.0.1.tar.gz", | ||
#) | ||
|
||
local_repository( | ||
name = "rules_jq", | ||
path = "../..", | ||
) | ||
|
||
load("@rules_jq//jq:repositories.bzl", "jq_register_toolchains", "rules_jq_dependencies") | ||
|
||
rules_jq_dependencies() | ||
|
||
jq_register_toolchains( | ||
name = "jq", | ||
jq_version = "1.6", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "a": { "b": "123" } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,5 @@ rules_jq_dependencies() | |
|
||
jq_register_toolchains( | ||
name = "jq", | ||
jq_version = "1.6", | ||
jq_version = "1.7", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters