-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: use gojq - part 1 #14686
tests: use gojq - part 1 #14686
Changes from all commits
6613f3d
1e41f0b
26c254d
3524533
a6714a8
4737a58
0deee6b
ec4e7f1
6ea1a3c
d232ca1
338d68a
1973358
6be313b
1fc321b
040ccb1
4036108
d0a9026
4765295
468aa65
8ac0240
4a7d23e
f1dfd3f
897cb42
af4baec
8e4d81c
2145c5f
abf97d6
69f9d13
cd6f2b3
5bdd9ee
a2d5172
c306ca5
e21c768
d1f9f70
f883d16
db2d443
bcea77a
a8c3376
2ef3c84
68692b4
0f3d762
617ea77
d928e26
877b75a
48c238d
34852bc
abd010e
d19b50a
a2640d0
5ac921a
e153fdc
c28af61
2706405
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -608,6 +608,15 @@ prepare_project() { | |
disable_journald_rate_limiting | ||
disable_journald_start_limiting | ||
fi | ||
|
||
# native jq replacement, but still with some incompatibilies, see | ||
# https://github.com/itchyny/gojq | ||
# major differences: | ||
# - map keys are sorted by default | ||
# - with --yaml-input, can parse YAML | ||
GOBIN=$PROJECT_PATH/tests/bin \ | ||
CGO_ENABLED=0 \ | ||
go install github.com/itchyny/gojq/cmd/[email protected] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bboozzoo what if we create a gojq snap and then we use an alias to keep using jq command? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we want to have as little extra dependencies with side effects as possible, which means installing additional snap (and its dependencies) is something I aim to avoid |
||
} | ||
|
||
prepare_project_each() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might consider just pulling one of the pre-built artefacts instead:
The build could be only done on arch mismatch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are those built with CGO disabled?